trace abstract method
T
trace()
The trace of a square matrix A
, denoted tr(A)
, is defined to be the
sum of elements on the main diagonal (from the upper left to the lower
right).
A MatrixException object is thrown if the matrix isn't square.
Implementation
T trace();