View source: R/051_atoms_affine_upper_tri.R
| vec_to_upper_tri | R Documentation |
Inverts upper_tri. Takes a flat vector and returns an
upper triangular matrix (row-major order, matching CVXPY convention).
vec_to_upper_tri(expr, strict = FALSE)
expr |
An Expression (vector). |
strict |
Logical. If TRUE, returns a strictly upper triangular matrix (diagonal is zero). If FALSE, includes the diagonal. Default is FALSE. |
An Expression representing the upper triangular matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.