I want to get the tensor product of two column vectors, for example:
a = {1, 2, 3};
b = {2, 3, 1};
psi0 = ArrayFlatten[TensorProduct[a, b]];
The size of psi0 is $ 3 \times 3 $, but it should be a column vector with 9 components.
What am I doing wrong?
Flatteninstead ofArrayFlatten? – Roman Jun 28 '19 at 15:17ArrayFlatten[...,1]? – Daniel Lichtblau Jun 28 '19 at 15:20List. Then please compareTensorProductandKroneckerProduct. – Αλέξανδρος Ζεγγ May 18 '20 at 10:17