Get the trace of the matrix (sum of the values along the diagonal)
@override double MatrixTrace( Matrix mat, ) => _wasm.MatrixTrace( Matrix$.Ref1(mat).toJS, );