Returns the sum of the diagonal elements.
MatrixObject.Trace
If matrix object is a real matrix then the value returned is a Double. If matrix object is a complex matrix then the value returned is a Complex.
Trace can be calculated only for a square matrix.
Error 1305 will be returned, if matrix is not square.