| DiagMat | R Documentation |
Extracts the k-th diagonal of a square matrix as a column vector.
DiagMat(x, k = 0L, id = NULL)
x |
A CVXR expression (square matrix). |
k |
Integer diagonal offset. |
id |
Optional integer ID. |
A DiagMat expression of shape
c(n - abs(k), 1).
DiagVec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.