WLJS LogoWLJS Notebook

TensorProduct

TensorProduct[tensor1, tensor2, ...] represents the tensor product of the tensori.

Examples

Tensor product of two vectors:

TensorProduct[{a, b}, {x, y}]
(* {{a x, a y}, {b x, b y}} *)

Tensor product of vectors and matrices:

TensorProduct[{1, 2}, {{1, 0}, {0, 1}}]

Please visit the official Wolfram Language Reference for more details.

On this page