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