Skip to content

Commit

Permalink
Add failing case to EigenvalueTest
Browse files Browse the repository at this point in the history
This is the same U matrix added to the Eigenvector test. Except the power method actually calculates the correct maximum eigenvalue of the U matrix.
  • Loading branch information
Aweptimum committed Oct 27, 2023
1 parent 36c663b commit fc653b3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/LinearAlgebra/Eigen/EigenvalueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,19 @@ public function dataProviderForLargeMatrixEigenvalues(): array
],
[4, 3, 2, -2, 1, -1],
4,
],

[ // Failing case
[
[2,0,0,0,0,0],
[0,2,0,0,0,1729.7],
[0,0,2,0,-1729.7,0],
[0,0,0,0,0,0],
[0,0,-1729.7,0,2.82879*10**6,0],
[0,1729.7,0,0,0,2.82879*10**6]
],
[2828791.05765, 0.94235235527, 0.94235235527, 2828791.05765, 2, 0],
2828791.05765
]
];
}
Expand Down

0 comments on commit fc653b3

Please sign in to comment.