mat2rot | R Documentation |
Rotate a symmetric band matrix to get the rotated matrix associated. Each column of the rotated matrix correspond to a diagonal. The first column is the main diagonal, the second one is the upper-diagonal and so on. Artificial 0 are placed at the end of each column if necessary.
mat2rot(M)
M |
Band square matrix or a list of diagonal. |
Rotated matrix.
A = diag(4) A[2,3] = 2 A[3,2] = 2 ## Original Matrix A ## Rotated version R = mat2rot(A) R rot2mat(mat2rot(A))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.