Skip to content

Commit

Permalink
Numeric: use error in isRectangularDiagonal
Browse files Browse the repository at this point in the history
Previously was just using the default error of `Support::isZero`
  • Loading branch information
Aweptimum committed Dec 4, 2023
1 parent 9764083 commit 77de387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LinearAlgebra/NumericMatrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 77de387

Please sign in to comment.