MatrixTrace method

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

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

Implementation

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