Get the trace of the matrix (sum of the values along the diagonal)
@override double MatrixTrace( MatrixD mat, ) => _ffi.MatrixTrace( $.Matrix$.Ref1(mat).asNativePointer<MatrixC>().ref, );