Description Usage Arguments Details See Also Examples
Given the row and column dimension of a commutation and matrix x
, performs
one of the matrix-matrix operations:
\bold{Y} = \bold{KX}, if side = "left"
and transposed = FALSE
, or
\bold{Y} = \bold{K}^T\bold{X}, if side = "left"
and transposed = TRUE
, or
\bold{Y} = \bold{XK}, if side = "right"
and transposed = FALSE
, or
\bold{Y} = \bold{XK}^T, if side = "right"
and transposed = TRUE
,
where \bold{K} is the commutation matrix of order mn. The main aim of
comm.prod
is to do this matrix multiplication without forming the
commutation matrix.
1 |
m |
a positive integer row dimension. |
n |
a positive integer column dimension. |
x |
numeric matrix (or vector). |
transposed |
logical. Commutation matrix should be transposed? |
side |
a string selecting if commutation matrix is pre-multiplying |
Underlying Fortran
code only uses information provided by comm.info
to performs the matrix multiplication. The commutation matrix is never created.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.