From 77de387a964ad5dc06679b4686481ee50cf19a86 Mon Sep 17 00:00:00 2001 From: Sam <40273116+Aweptimum@users.noreply.github.com> Date: Mon, 4 Dec 2023 13:07:08 -0600 Subject: [PATCH] Numeric: use error in isRectangularDiagonal Previously was just using the default error of `Support::isZero` --- src/LinearAlgebra/NumericMatrix.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }