Fix and test MatrixSquareRoot for 1-by-1 matrices.

This commit is contained in:
Jitse Niesen
2011-06-07 14:32:16 +01:00
parent 91fe1507d1
commit 86ca35ccff
2 changed files with 4 additions and 2 deletions

View File

@@ -71,5 +71,7 @@ void test_matrix_square_root()
CALL_SUBTEST_2(testMatrixSqrt(MatrixXcd(12,12)));
CALL_SUBTEST_3(testMatrixSqrt(Matrix4f()));
CALL_SUBTEST_4(testMatrixSqrt(Matrix<double,Dynamic,Dynamic,RowMajor>(9, 9)));
CALL_SUBTEST_5(testMatrixSqrt(Matrix<float,1,1>()));
CALL_SUBTEST_5(testMatrixSqrt(Matrix<std::complex<float>,1,1>()));
}
}