collapse_mat_list | R Documentation |
Collapse a list of square matrices into a matrix where each row contains the column-wise vectorization of one of the original matrices.
collapse_mat_list(Alist)
Alist |
A list of matrices, of any length. |
A matrix where each row contains the column-wise vectorization of one of the original matrices.
A1<- matrix(data=c(0,0.8,0, 0,0,0.7, 5,0,0.2), nrow=3, ncol=3)
A2<- matrix(data=c(0,0.9,0, 0,0,0.5, 4,0,0.3), nrow=3, ncol=3)
A3<- matrix(data=c(0,0.4,0, 0,0,0.6, 6,0,0.25), nrow=3, ncol=3)
A_all<- collapse_mat_list(list(A1, A2, A3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.