Skip to content

Commit

Permalink
Add failing eigenvector cases to eigenvalues
Browse files Browse the repository at this point in the history
They work, so the problem must be in the eigenvectors method
  • Loading branch information
Aweptimum committed Nov 1, 2023
1 parent 06e0673 commit 6a81002
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/LinearAlgebra/Eigen/EigenvalueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ public function dataProviderForEigenvalues(): array
[2, 2, 1],
2,
],
[
[
[2, 0, 1],
[2, 1, 2],
[3, 0, 4]
],
[5, 1, 1],
5,
],
[
[
[1, 2, 1],
Expand Down Expand Up @@ -276,6 +285,18 @@ 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 6a81002

Please sign in to comment.