[ what is an equivalent of matlab permute(A, [3 2 1]) in python? ]
A is a 2x2 array, what is an equivalent expression in python for
permute(A, [3 2 1]) in MATLAB?
You are looking for
np.transpose( np.expand_dims(A, axis=2), (2, 1, 0) )
numpy does not have trailing Singleton dimensions by default, you need to explicitly add it using