Say if I need a^T * b * a, I will do this:
But this seems too long for such a simple matrix （and vector) computation. I am sure there must be an short way.
What if I need more computation, like
a^T * b * c*d*f*g* a, where c,d,f,g are other 2x2 matrices.
If I were to use the above command, that'll take a long time to input.