Skip to content

Commit 2f08e84

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

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/LinearAlgebra/Eigen/EigenvalueTest.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,24 @@ 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+
],
232+
[ // Matrix has duplicate eigenvalues. no solution on the axis
233+
[
234+
[2, 2, -3],
235+
[2, 5, -6],
236+
[3, 6, -8],
237+
],
238+
[-3, 1, 1],
239+
-3
240+
],
223241
[
224242
[
225243
[1, 2, 1],
@@ -276,6 +294,18 @@ public function dataProviderForLargeMatrixEigenvalues(): array
276294
],
277295
[4, 3, 2, -2, 1, -1],
278296
4,
297+
],
298+
[ // Failing case
299+
[
300+
[2,0,0,0,0,0],
301+
[0,2,0,0,0,1729.7],
302+
[0,0,2,0,-1729.7,0],
303+
[0,0,0,0,0,0],
304+
[0,0,-1729.7,0,2.82879*10**6,0],
305+
[0,1729.7,0,0,0,2.82879*10**6]
306+
],
307+
[2828791.05765, 0.94235235527, 0.94235235527, 2828791.05765, 2, 0],
308+
2828791.05765
279309
]
280310
];
281311
}

0 commit comments

Comments
 (0)