MatrixTrace method

  1. @override
double MatrixTrace(
  1. MatrixD mat
)
override

Get the trace of the matrix (sum of the values along the diagonal)

Implementation

@override
double MatrixTrace(
  MatrixD mat,
) => _wasm.MatrixTrace(
  $.Matrix$.Ref1(mat).toJS,
);