Thanks @JuanFMontesinos. I thought it would work like the same way in maths. So even for a 2D matrix of same dimensions, does it has to be squeezed / changed in dimension so that it can form the structure,
A: NxM
B: MxS
then A*B -->; NxS
or I am understanding it wrong.