Fix test: EigenSolver on 1x1 matrix with NaN sets info to NumericalIssue.

This was changed in 3c66bb136b
.
This commit is contained in:
Jitse Niesen 2014-06-02 11:42:42 +01:00
parent eb56461ac2
commit 789674809f

View File

@ -114,10 +114,9 @@ void test_eigensolver_generic()
CALL_SUBTEST_2(
{
MatrixXd A(1,1);
A(0,0) = std::sqrt(-1.);
A(0,0) = std::sqrt(-1.); // is Not-a-Number
Eigen::EigenSolver<MatrixXd> solver(A);
MatrixXd V(1, 1);
V(0,0) = solver.eigenvectors()(0,0).real();
VERIFY_IS_EQUAL(solver.info(), NumericalIssue);
}
);