Tensor¶
Calculation¶
Kronecker product¶
If \(A\) is an \(m \times n\) matrix and \(B\) is a \(p \times q\) matrix, then the Kronecker product \(A \otimes B\) is the \(pm \times qn\) block matrix:
more explicitly:
Example
vector case (row or column form):
and
see also:
Khatri-Rao product¶
In mathematics, the Khatri–Rao product is defined as:
Example
if A and B both are 2 × 2 partitioned matrices e.g.:
we obtain:
see also:
Hadamard product¶
Only for matrices of equal size. Also known as the element-wise product, entrywise product, or Schur product.
Example
n-mode tensor-matrix product¶
The n-mode (matrix) product of a tensor \(\mathcal A \in \mathbb{R}^{I_1 \times I_2 \times \ldots \times I_N}\) with a matrix \(\mathbf U \in \mathbb{R}^{J \times I_n}\) is denoted by \(\mathcal{A} \times_n \mathbf U\) and is of size \(I_1 \times \ldots I_{n-1} \times J \times I_{n+1} \times \ldots \times N\). Elementwise, we have
For multiple n-mode product the order is irrelevant:
For multiple n-mode product with the same n the order is relevant: