Calculates the trace of a matrix.
The matrix
const result = Chalkboard.matr.trace([[2, 1], [3, 5]]); // Returns 7 Copy
const result = Chalkboard.matr.trace([[2, 1], [3, 5]]); // Returns 7
Calculates the trace of a matrix.