Skip to content

Commit

Permalink
Add qr method to Eigenvector
Browse files Browse the repository at this point in the history
Just gets the eigenvalues from the qr algorithm and feeds them to the eigenvectors method
  • Loading branch information
Aweptimum committed Nov 6, 2023
1 parent edb1bb3 commit 51a36e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LinearAlgebra/Eigenvector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@

class Eigenvector
{
public static function qrAlgorithm(NumericMatrix $A)
{
$eigenvalues = Eigenvalue::qrAlgorithm($A);

return self::eigenvectors($A, $eigenvalues);
}

/**
* Calculate the Eigenvectors for a matrix
*
Expand Down

0 comments on commit 51a36e9

Please sign in to comment.