Skip to contents

Vector to lower triangular matrix (RTMB compatible)

Usage

to_lower_tri(x, M, D)

Arguments

x

A numeric or advector.

M

Number of rows.

D

Number of columns.

Value

An M x D lower triangular matrix.