added a test for triangular matrices

This commit is contained in:
Gael Guennebaud
2008-05-02 11:35:59 +00:00
parent 890a8de962
commit e19f9bc523
2 changed files with 100 additions and 1 deletions

View File

@@ -48,7 +48,6 @@ template<typename MatrixType> void cholesky(const MatrixType& m)
VERIFY_IS_APPROX(covMat, cholnosqrt.matrixL() * cholnosqrt.vectorD().asDiagonal() * cholnosqrt.matrixL().adjoint());
VERIFY_IS_APPROX(covMat * cholnosqrt.solve(b), b);
Cholesky<SquareMatrixType> chol(covMat);
VERIFY_IS_APPROX(covMat, chol.matrixL() * chol.matrixL().adjoint());
VERIFY_IS_APPROX(covMat * chol.solve(b), b);