This module contains an experimental Kronecker product implementation.
#include <Eigen/KroneckerProduct>
◆ kroneckerProduct() [1/2]
template<typename A , typename B >
Computes Kronecker tensor product of two matrices, at least one of which is sparse
- Warning
- If you want to replace a matrix by its Kronecker product with some matrix, do NOT do this:
KroneckerProduct< A, B > kroneckerProduct(const MatrixBase< A > &a, const MatrixBase< B > &b)
Definition: KroneckerTensorProduct.h:273
instead, use eval() to work around this:
- Parameters
-
a | Dense/sparse matrix a |
b | Dense/sparse matrix b |
- Returns
- Kronecker tensor product of a and b, stored in a sparse matrix
◆ kroneckerProduct() [2/2]
template<typename A , typename B >
Computes Kronecker tensor product of two dense matrices
- Warning
- If you want to replace a matrix by its Kronecker product with some matrix, do NOT do this: instead, use eval() to work around this:
- Parameters
-
- Returns
- Kronecker tensor product of a and b