| DiagVec | R Documentation |
Constructs a diagonal matrix from a column vector. If k != 0,
the vector is placed on the k-th super- or sub-diagonal.
DiagVec(x, k = 0L, id = NULL)
x |
A CVXR expression (column vector). |
k |
Integer diagonal offset. |
id |
Optional integer ID. |
A DiagVec expression of shape
c(n + abs(k), n + abs(k)).
DiagMat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.