to_centered_tri: Vector to centered triangular matrix (RTMB compatible)

View source: R/math_functions.R

to_centered_triR Documentation

Vector to centered triangular matrix (RTMB compatible)

Description

Vector to centered triangular matrix (RTMB compatible)

Usage

to_centered_tri(x, R, C)

Arguments

x

A numeric vector of appropriate length.

R

Number of rows.

C

Number of columns.

Value

An R x C matrix with column-wise sum-to-zero constraints on lower elements.


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