R/math_functions.R
to_centered_matrix.Rd
Vector to centered matrix (RTMB compatible)
to_centered_matrix(x, R, C)
A numeric vector of length (R-1) * C.
Number of rows.
Number of columns.
An R x C matrix where each column sums to zero.