Trace

Overview


The trace of a matrix is equal to the sum of the diagonal elements. For example, the trace of the following matrix
{% \begin{bmatrix} a & b & c \\ d & e & f\\ g & h & i \\ \end{bmatrix} %}
is equal to
{% a+e+i %}