Fix bugs reported by Timothy Hunter:

* CholeskyWithoutSqrt with 1x1 matrices
 * .part<Diagonal>()
Updated unit tests to handle these cases
This commit is contained in:
Gael Guennebaud
2008-09-03 20:52:26 +00:00
parent e14aa8c8aa
commit c29c7b0ea9
4 changed files with 9 additions and 2 deletions

View File

@@ -79,7 +79,6 @@ template<typename MatrixType> void cholesky(const MatrixType& m)
}
#endif
if (rows>1)
{
CholeskyWithoutSquareRoot<SquareMatrixType> cholnosqrt(symm);
VERIFY(cholnosqrt.isPositiveDefinite());