Consider following two matrices and a vector
matrix2 A = {{1,1}, {-1,1}}; matrix2 B = {{1,2}, { 0,1}}; vector2 v = {1,0};
The source of all problems is that is does not matter if I multiply a matrix by a vector from right or left, i.e.
A*v == v*A
This leads to an absurd fact that multiplication is not associative, i.e.
A*B*v == (A*B)*v != A*(B*v)
If I always keep vector on the left side then there is no problem, i.e.
v*A*B == (v*A)*B == v*(A*B)
Do I understand the problem fully or is there an additional catch? Am I safe if I always multiply matrices by a vector from the left side?