m2a {lazy.mat} | R Documentation |
Convert supermatrix to array
m2a(M, method = 1, n3 = 0)
M |
Input supermatrix |
method |
= 1 when M is a horizontally stacked supermatrix |
n3 |
# of third dimensions when M does not have SMdim attribute. |
The size of the supermatrix M must be
method = 1: n1 x (n3 x n2)
method = 2: (n3 x n1) x n2
About SMdim attribute:
SMdim attribute of a supermatrix is a list of the form
(nrows=, ncols=) where
nrows is a vector of rows of each submatrix,
ncols is a vector of columns of each submatrix.
an array of n1 x n2 x n3
m2a(demomat(4,3,2,supermat=1)) m2a(demomat(4,3,2,supermat=2))