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 6, 2023
1 parent 6b445d9 commit 2f08e84
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/LinearAlgebra/Eigen/EigenvalueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,24 @@ public function dataProviderForEigenvalues(): array
[2, 2, 1],
2,
],
[
[
[2, 0, 1],
[2, 1, 2],
[3, 0, 4]
],
[5, 1, 1],
5,
],
[ // Matrix has duplicate eigenvalues. no solution on the axis
[
[2, 2, -3],
[2, 5, -6],
[3, 6, -8],
],
[-3, 1, 1],
-3
],
[
[
[1, 2, 1],
Expand Down Expand Up @@ -276,6 +294,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 2f08e84

Please sign in to comment.