powered by
Obtain the trace of a matrix if the matrix is diagonal, otherwise raise an error.
h_tr(x)
The trace of the square matrix.
(matrix) square matrix input.
matrix