to_centered_matrix: Vector to centered matrix (RTMB compatible)

View source: R/math_functions.R

to_centered_matrixR Documentation

Vector to centered matrix (RTMB compatible)

Description

Vector to centered matrix (RTMB compatible)

Usage

to_centered_matrix(x, R, C)

Arguments

x

A numeric vector of length (R-1) * C.

R

Number of rows.

C

Number of columns.

Value

An R x C matrix where each column sums to zero.


BayesRTMB documentation built on Nov. 24, 2026, 9:06 a.m.