transp {lazy.mat} | R Documentation |
Transpose each matrix contained in a list/array/supermatrix..
Description
Transpose each matrix contained in a list/array/supermatrix..
Usage
transp(body, method = 1, n3 = 0)
Arguments
body |
list/array/supermatrix containing matrices If the body is a supermatrix and SMdim attribute of which is NULL, The following two parameters must be given. |
method |
= 1 when the supermatrix is horizontally stacked one =2 when the supermatrix is vertically stacked one |
n3 |
# of matrices |
Details
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.
See the description section of supermat
funcion
for the details.
Value
list/array/supermatrix consisting of the transposed matrices
Examples
transp(demomat(4,3,2))
transp(demomat(4,3,2,supermat=2))
[Package lazy.mat version 0.1.6 ]