Evaluate the trace of a square matrix.
mps_trace( rop, op ) rop = mps_trace( op )
multi-precision scalar
Scilab or multi-precision square matrix
Evaluates the trace of a square matrix op
returning
the result in rop
.
When the input is a multi-precision matrix the trace is evaluated as an accurate sum using the mpfr_sum() function.