MatrixTrace
MatrixTrace (dataMatrix)
The matrixTrace function calculates the trace (sum of diagonal elements) of a square matrix.
If the matrix is complex, the function returns the sum of the magnitudes of the diagonal elements.
This function works on matrices of all data types.
See Also
The MatrixOp operation for more efficient matrix operations.
Matrix Math Operations for more about Igor's matrix routines.