For example,
A = np.arange(24).reshape((2, 3, 4))
print np.einsum('ijk', A)
this is still A
with no problem.
But if I do print np.einsum('kij', A)
the shape is (3, 4, 2)
. Shouldn't it be (4, 2, 3)
?
The result of print np.einsum('cab', A)
shape is (4, 2, 3)
with no problem too. Why is print np.einsum('kij', A)
not the same?