Skip to content

Commit 36c663b

Browse files
committed
Add failing case to EigenvectorTest
The added matrix is the U matrix calculated in the SVD decomposition of the failing case in both the SVDTest + pseudoinverse test
1 parent 9f6f9cc commit 36c663b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/LinearAlgebra/Eigen/EigenvectorTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function testEigenvectorsUsingClosedFormPolynomialRootMethodFromMatrix(ar
4747

4848
public function dataProviderForEigenvector(): array
4949
{
50+
$b = 0.00061146305;
5051
return [
5152
[
5253
[
@@ -128,6 +129,24 @@ public function dataProviderForEigenvector(): array
128129
[6 / \sqrt(65), -2 / 3, 1 / \sqrt(5),],
129130
]
130131
],
132+
[ // Failing case
133+
[
134+
[2,0,0,0,0,0],
135+
[0,2,0,0,0,1729.7],
136+
[0,0,2,0,-1729.7,0],
137+
[0,0,0,0,0,0],
138+
[0,0,-1729.7,0,2.82879*10**6,0],
139+
[0,1729.7,0,0,0,2.82879*10**6]
140+
],
141+
[
142+
[0, 0, 1, 0, 0, 0],
143+
[0.00061146305, 0, 0,-1635.422, 0, 0],
144+
[0,-0.00061146305, 0, 0,1635.422, 0],
145+
[0, 0, 0, 0, 0, 1],
146+
[0, 1, 0, 0, 1, 0],
147+
[1, 0, 0, 1, 0, 0],
148+
]
149+
],
131150
];
132151
}
133152

0 commit comments

Comments
 (0)