isNonsingular method

bool isNonsingular()

Is the matrix nonsingular? return true if U, and hence A, is nonsingular.

Implementation

bool isNonsingular() {
  for (var j = 0; j < _n; j++) {
    if (_LUMatrix[j][j] == 0) {
      return false;
    }
  }
  return true;
}