Skip to content

Commit 6a81002

Browse files
committed
Add failing eigenvector cases to eigenvalues
They work, so the problem must be in the eigenvectors method
1 parent 06e0673 commit 6a81002

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/LinearAlgebra/Eigen/EigenvalueTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@ public function dataProviderForEigenvalues(): array
220220
[2, 2, 1],
221221
2,
222222
],
223+
[
224+
[
225+
[2, 0, 1],
226+
[2, 1, 2],
227+
[3, 0, 4]
228+
],
229+
[5, 1, 1],
230+
5,
231+
],
223232
[
224233
[
225234
[1, 2, 1],
@@ -276,6 +285,18 @@ public function dataProviderForLargeMatrixEigenvalues(): array
276285
],
277286
[4, 3, 2, -2, 1, -1],
278287
4,
288+
],
289+
[ // Failing case
290+
[
291+
[2,0,0,0,0,0],
292+
[0,2,0,0,0,1729.7],
293+
[0,0,2,0,-1729.7,0],
294+
[0,0,0,0,0,0],
295+
[0,0,-1729.7,0,2.82879*10**6,0],
296+
[0,1729.7,0,0,0,2.82879*10**6]
297+
],
298+
[2828791.05765, 0.94235235527, 0.94235235527, 2828791.05765, 2, 0],
299+
2828791.05765
279300
]
280301
];
281302
}

0 commit comments

Comments
 (0)