bgobbi:

m1: [2 x 1], m2: [2 x 2]


As a rule, matrix multiplication only works when the neighbouring dimensions coincide. so f.t() will be 1 x 2 and can be multiplied from the right with 2 x 2 r to give a 1 x 2.
Best regards
Thomas