矩阵的迹数是矩阵的所有特征值(按照代数重数计算)的和

https://en.wikipedia.org/wiki/Trace_(linear_algebra)

In linear algebra, the trace of an n-by-n square matrix A is defined to be the sum of the elements on the main diagonal (the diagonal from the upper left to the lower right) of A, i.e.,

tr(AB)=tr(BA)

原文地址:https://www.cnblogs.com/rsapaper/p/7471063.html