Code Duplication    Length = 5-5 lines in 3 locations

src/Phpml/Math/LinAlg/EigenValueDecomposition.php 3 locations

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