@@ 486-490 (lines=5) @@ | ||
483 | $p = $p / $r; |
|
484 | $q = $q / $r; |
|
485 | // Row modification |
|
486 | for ($j = $n-1; $j < $nn; ++$j) { |
|
487 | $z = $this->H[$n-1][$j]; |
|
488 | $this->H[$n-1][$j] = $q * $z + $p * $this->H[$n][$j]; |
|
489 | $this->H[$n][$j] = $q * $this->H[$n][$j] - $p * $z; |
|
490 | } |
|
491 | // Column modification |
|
492 | for ($i = 0; $i <= $n; ++$i) { |
|
493 | $z = $this->H[$i][$n-1]; |
|
@@ 492-496 (lines=5) @@ | ||
489 | $this->H[$n][$j] = $q * $this->H[$n][$j] - $p * $z; |
|
490 | } |
|
491 | // Column modification |
|
492 | for ($i = 0; $i <= $n; ++$i) { |
|
493 | $z = $this->H[$i][$n-1]; |
|
494 | $this->H[$i][$n-1] = $q * $z + $p * $this->H[$i][$n]; |
|
495 | $this->H[$i][$n] = $q * $this->H[$i][$n] - $p * $z; |
|
496 | } |
|
497 | // Accumulate transformations |
|
498 | for ($i = $low; $i <= $high; ++$i) { |
|
499 | $z = $this->V[$i][$n-1]; |
|
@@ 498-502 (lines=5) @@ | ||
495 | $this->H[$i][$n] = $q * $this->H[$i][$n] - $p * $z; |
|
496 | } |
|
497 | // Accumulate transformations |
|
498 | for ($i = $low; $i <= $high; ++$i) { |
|
499 | $z = $this->V[$i][$n-1]; |
|
500 | $this->V[$i][$n-1] = $q * $z + $p * $this->V[$i][$n]; |
|
501 | $this->V[$i][$n] = $q * $this->V[$i][$n] - $p * $z; |
|
502 | } |
|
503 | // Complex pair |
|
504 | } else { |
|
505 | $this->d[$n-1] = $x + $p; |