Is there a way to tell Mathematica that a,b and c are some square matrices (say 3 by 3) so that the output of Tr[A.B.C] is something like Tr[a.b.c] instead of just abc?
What do you mean with Tr. The trace of the transpose? Furthermore the variable βCβ is protected in Mathematica, it has a very special purpous. Always try to use small letters. What do you mean with the β,β do you mean dot-product? Please clarify what you want. The trace (the sum of the diagonal row) can be obtained by using Total[Diagonal].
Sorry I wasnβt very careful in writing my question. so let me rephrase it. Yes by βTrβ I mean the trace and by β.β the dot product. If I write:
The output is
a b c
a b c
which is fine if a,b and c are numbers. However, if they are matrices, then in general Tr[a.b.c] and Tr[b.a.c] are different. So I would like to keep track of this, without having to define a, b and c.