det method

double det()

Determinant return det(A) exception FormatException Matrix must be square

Implementation

double det() {
  if (_m != _n) {
    throw FormatException('Matrix must be square.');
  }
  var d = _pivsign.toDouble();
  for (var j = 0; j < _n; j++) {
    d *= _LUMatrix[j][j];
  }
  return d;
}