comm.prod
Matrix multiplication envolving the commutation matrix
Description
Given the row and column dimension of a commutation and matrix x , performs
one of the matrix-matrix operations:
- \(\mathbf{Y} = \mathbf{KX}\) , if
side = "left"andtransposed = FALSE, or - \(\mathbf{Y} = \mathbf{K}^T\mathbf{X}\) , if
side = "left"andtransposed = TRUE, or - \(\mathbf{Y} = \mathbf{XK}\) , if
side = "right"andtransposed = FALSE, or - \(\mathbf{Y} = \mathbf{XK}^T\) , if
side = "right"andtransposed = TRUE,
where \(\mathbf{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.
Usage
Arguments
| Argument | Description |
|---|---|
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 x , that is side = "left" or post-multiplying x , by using side = "right" . |
Details
Underlying Fortran code only uses information provided by comm.info
to performs the matrix multiplication. The commutation matrix is never created.