Skip to content

Commit 77de387

Browse files
committed
Numeric: use error in isRectangularDiagonal
Previously was just using the default error of `Support::isZero`
1 parent 9764083 commit 77de387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinearAlgebra/NumericMatrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public function isRectangularDiagonal(): bool
542542
$n = $this->n;
543543
for ($i = 0; $i < $m; $i++) {
544544
for ($j = 0; $j < $n; $j++) {
545-
if ($i !== $j && !Support::isZero($this->A[$i][$j])) {
545+
if ($i !== $j && !Support::isZero($this->A[$i][$j], $this->getError())) {
546546
return false;
547547
}
548548
}

0 commit comments

Comments
 (0)