dupl.prod
Matrix multiplication envolving the duplication matrix
Description
Given the order of a duplication and matrix x , performs one of the matrix-matrix
operations:
- \(\mathbf{Y} = \mathbf{DX}\) , if
side = "left"andtransposed = FALSE, or - \(\mathbf{Y} = \mathbf{D}^T\mathbf{X}\) , if
side = "left"andtransposed = TRUE, or - \(\mathbf{Y} = \mathbf{XD}\) , if
side = "right"andtransposed = FALSE, or - \(\mathbf{Y} = \mathbf{XD}^T\) , if
side = "right"andtransposed = TRUE,
where \(\mathbf{D}\) is the duplication matrix of order \(n\) . The main aim of
dupl.prod is to do this matrix multiplication without forming the
duplication matrix.
Usage
Arguments
| Argument | Description |
|---|---|
n |
order of the duplication matrix. |
x |
numeric matrix (or vector). |
transposed |
logical. Duplication matrix should be transposed? |
side |
a string selecting if duplication matrix is pre-multiplying x , that is side = "left" or post-multiplying x , by using side = "right" . |
Details
Underlying C code only uses information provided by dupl.info to
performs the matrix multiplication. The duplication matrix is never created.