Tr
Tr[list] finds the trace of the matrix or tensor list.
Tr[list,f] finds a generalized trace, combining terms with f instead of Plus.
Tr[list,f,n] goes down to level n in list.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.