Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 328-337 (lines=10) @@
325
                $this->ort[$m] -= $g;
326
                // Apply Householder similarity transformation
327
                // H = (I -u * u' / h) * H * (I -u * u') / h)
328
                for ($j = $m; $j < $this->n; ++$j) {
329
                    $f = 0.0;
330
                    for ($i = $high; $i >= $m; --$i) {
331
                        $f += $this->ort[$i] * $this->H[$i][$j];
332
                    }
333
                    $f /= $h;
334
                    for ($i = $m; $i <= $high; ++$i) {
335
                        $this->H[$i][$j] -= $f * $this->ort[$i];
336
                    }
337
                }
338
                for ($i = 0; $i <= $high; ++$i) {
339
                    $f = 0.0;
340
                    for ($j = $high; $j >= $m; --$j) {
@@ 338-347 (lines=10) @@
335
                        $this->H[$i][$j] -= $f * $this->ort[$i];
336
                    }
337
                }
338
                for ($i = 0; $i <= $high; ++$i) {
339
                    $f = 0.0;
340
                    for ($j = $high; $j >= $m; --$j) {
341
                        $f += $this->ort[$j] * $this->H[$i][$j];
342
                    }
343
                    $f = $f / $h;
344
                    for ($j = $m; $j <= $high; ++$j) {
345
                        $this->H[$i][$j] -= $f * $this->ort[$j];
346
                    }
347
                }
348
                $this->ort[$m] = $scale * $this->ort[$m];
349
                $this->H[$m][$m-1] = $scale * $g;
350
            }