一个方阵的主对角线之和。 $ A=\begin{bmatrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{bmatrix} $ $ \mathrm{tr}(A) = 1 + 5 + 9 = 15 $