kronecker.prod
Kronecker product on matrices
Description
Computes the kronecker product of two matrices, x and y .
Usage
Arguments
| Argument | Description |
|---|---|
x |
a numeric matrix or vector. |
y |
a numeric matrix or vector. |
Details
Let \(\mathbf{X}\) be an \(m\times n\) and \(\mathbf{Y}\) a \(p\times q\) matrix. The \(mp\times nq\) matrix defined by
\[\left[{\begin{array}{*{20}{c}}x_{11}\mathbf{Y} & \dots & x_{1n}\mathbf{Y} \\\vdots & & \vdots \\x_{m1}\mathbf{Y} & \dots & x_{mn}\mathbf{Y}\end{array}}\right],\]
is called the Kronecker product of \(\mathbf{X}\) and \(\mathbf{Y}\) .
Value
An array with dimensions dim(x) * dim(y) .
Seealso
kronecker function from base package is based on outer .
Our C version is slightly faster.
References
Magnus, J.R., Neudecker, H. (2007). Matrix Differential Calculus with Applications in Statistics and Econometrics , 3rd Edition. Wiley, New York.