@@ 608-616 (lines=9) @@ | ||
605 | $q = $q / $p; |
|
606 | $r = $r / $p; |
|
607 | // Row modification |
|
608 | for ($j = $k; $j < $nn; ++$j) { |
|
609 | $p = $this->H[$k][$j] + $q * $this->H[$k + 1][$j]; |
|
610 | if ($notlast) { |
|
611 | $p = $p + $r * $this->H[$k + 2][$j]; |
|
612 | $this->H[$k + 2][$j] = $this->H[$k + 2][$j] - $p * $z; |
|
613 | } |
|
614 | $this->H[$k][$j] = $this->H[$k][$j] - $p * $x; |
|
615 | $this->H[$k + 1][$j] = $this->H[$k + 1][$j] - $p * $y; |
|
616 | } |
|
617 | // Column modification |
|
618 | for ($i = 0; $i <= min($n, $k + 3); ++$i) { |
|
619 | $p = $x * $this->H[$i][$k] + $y * $this->H[$i][$k + 1]; |
|
@@ 618-626 (lines=9) @@ | ||
615 | $this->H[$k + 1][$j] = $this->H[$k + 1][$j] - $p * $y; |
|
616 | } |
|
617 | // Column modification |
|
618 | for ($i = 0; $i <= min($n, $k + 3); ++$i) { |
|
619 | $p = $x * $this->H[$i][$k] + $y * $this->H[$i][$k + 1]; |
|
620 | if ($notlast) { |
|
621 | $p = $p + $z * $this->H[$i][$k + 2]; |
|
622 | $this->H[$i][$k + 2] = $this->H[$i][$k + 2] - $p * $r; |
|
623 | } |
|
624 | $this->H[$i][$k] = $this->H[$i][$k] - $p; |
|
625 | $this->H[$i][$k + 1] = $this->H[$i][$k + 1] - $p * $q; |
|
626 | } |
|
627 | // Accumulate transformations |
|
628 | for ($i = $low; $i <= $high; ++$i) { |
|
629 | $p = $x * $this->V[$i][$k] + $y * $this->V[$i][$k + 1]; |
|
@@ 628-636 (lines=9) @@ | ||
625 | $this->H[$i][$k + 1] = $this->H[$i][$k + 1] - $p * $q; |
|
626 | } |
|
627 | // Accumulate transformations |
|
628 | for ($i = $low; $i <= $high; ++$i) { |
|
629 | $p = $x * $this->V[$i][$k] + $y * $this->V[$i][$k + 1]; |
|
630 | if ($notlast) { |
|
631 | $p = $p + $z * $this->V[$i][$k + 2]; |
|
632 | $this->V[$i][$k + 2] = $this->V[$i][$k + 2] - $p * $r; |
|
633 | } |
|
634 | $this->V[$i][$k] = $this->V[$i][$k] - $p; |
|
635 | $this->V[$i][$k + 1] = $this->V[$i][$k + 1] - $p * $q; |
|
636 | } |
|
637 | } // ($s != 0) |
|
638 | } // k loop |
|
639 | } // check convergence |