Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Oct 22, 2023
1 parent 8b3daf3 commit 8c9e692
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Math/Matrix/Matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ public function pow(int | float $exponent) : self
$eig = new EigenvalueDecomposition($this);

$d = $eig->getD();
for ($i = 0; $d->getM(); ++$i) {
$m = $d->getM();

for ($i = 0; $i < $m; ++$i) {
$d->matrix[$i][$i] = \pow($d->matrix[$i][$i], $exponent);
}

Expand Down

0 comments on commit 8c9e692

Please sign in to comment.