diff --git a/src/LinearAlgebra/NumericMatrix.php b/src/LinearAlgebra/NumericMatrix.php index 4984678f8..e8982761b 100644 --- a/src/LinearAlgebra/NumericMatrix.php +++ b/src/LinearAlgebra/NumericMatrix.php @@ -542,7 +542,7 @@ public function isRectangularDiagonal(): bool $n = $this->n; for ($i = 0; $i < $m; $i++) { for ($j = 0; $j < $n; $j++) { - if ($i !== $j && !Support::isZero($this->A[$i][$j])) { + if ($i !== $j && !Support::isZero($this->A[$i][$j], $this->getError())) { return false; } }