Loading

TR


math
Since v1.0.6
Available on all platforms

Computes the trace of a square matrix. If the input matrix is not square, an error is raised.

Signature

Examples

[ [ -2.0 2 -3 ] [ -1 1 3 ] [ 2 0 -1 ] ] ->MAT TR