rot2mat | R Documentation |
Get back a symmetric square matrix based on his rotated row-wised version. The rotated form of the input is such each column correspond to a diagonal, where the first column is the main diagonal and next ones are the upper/lower-diagonal. To match dimension, last element of these columns are discarded.
rot2mat(R)
R |
Rotated matrix. |
Band square matrix.
D0 = 1:5; D1 = c(0,1,0,0); D2 = rep(2,3); A = rot2mat(cbind(D0,c(D1,0),c(D2,0,0))) A mat2rot(rot2mat(cbind(D0,c(D1,0),c(D2,0,0))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.