Compute the tensor product \(A \otimes B\). For vectors, this is the outer product matrix \(C_{ij}=a_i b_j\). For matrices, this is the Kronecker product (a matrix representation of the tensor product of linear maps), with size \((mp)\times(nq)\) when \(A\in\mathbb{R}^{m\times n}\) and \(B\in\mathbb{R}^{p\times q}\). Includes a contraction / multi-linear identity demo.
Tensor Product Preview
Math Linear Algebra • Applications and Advanced Linear Algebra (capstone)
Frequently Asked Questions
Is the Kronecker product the same as the tensor product?
For matrices viewed as linear maps, the Kronecker product is the standard matrix representation of their tensor product in chosen bases.
Why does the output size grow so fast?
Because indices multiply: (m×n) with (p×q) becomes (mp)×(nq). Tensor products encode joint degrees of freedom.
What does contraction mean here?
Contraction sums over one index (like a dot product along a mode). It reduces the order/dimension of a tensor expression.
Where is this used in practice?
Kronecker/tensor products appear in multilinear algebra, tensor networks, quantum computing (composite systems/entanglement), and structured ML models.