Skip to content

Commit fc653b3

Browse files
committed
Add failing case to EigenvalueTest
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.
1 parent 36c663b commit fc653b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/LinearAlgebra/Eigen/EigenvalueTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,19 @@ public function dataProviderForLargeMatrixEigenvalues(): array
251251
],
252252
[4, 3, 2, -2, 1, -1],
253253
4,
254+
],
255+
256+
[ // Failing case
257+
[
258+
[2,0,0,0,0,0],
259+
[0,2,0,0,0,1729.7],
260+
[0,0,2,0,-1729.7,0],
261+
[0,0,0,0,0,0],
262+
[0,0,-1729.7,0,2.82879*10**6,0],
263+
[0,1729.7,0,0,0,2.82879*10**6]
264+
],
265+
[2828791.05765, 0.94235235527, 0.94235235527, 2828791.05765, 2, 0],
266+
2828791.05765
254267
]
255268
];
256269
}

0 commit comments

Comments
 (0)