Fix segfault and bug with equal eivals in matrix power (bug #614).

This commit is contained in:
Chen-Pang He
2013-06-24 13:58:51 +01:00
parent 1330ca611b
commit ee8a28fb85
2 changed files with 21 additions and 5 deletions

View File

@@ -181,6 +181,6 @@ void test_matrix_power()
CALL_SUBTEST_1(testMatrixVector(Matrix2f(), Vector2f(), 1e-4));
CALL_SUBTEST_5(testMatrixVector(Matrix3cf(), Vector3cf(), 1e-4));
CALL_SUBTEST_8(testMatrixVector(Matrix4f(), Vector4f(), 1e-4));
CALL_SUBTEST_6(testMatrixVector(MatrixXf(8,8), VectorXf(8), 1e-3));
CALL_SUBTEST_6(testMatrixVector(MatrixXf(2,2), VectorXf(2), 1e-3)); // see bug 614
CALL_SUBTEST_9(testMatrixVector(MatrixXe(7,7), VectorXe(7), 1e-13));
}