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?
Flatten
instead ofArrayFlatten
? $\endgroup$ArrayFlatten[...,1]
? $\endgroup$List
. Then please compareTensorProduct
andKroneckerProduct
. $\endgroup$