compilation fix with conjugate_gradient_solve_retval_with_guess

This commit is contained in:
Gael Guennebaud
2011-07-26 14:43:20 +02:00
parent 51f706b916
commit 3a2cabc275
2 changed files with 7 additions and 3 deletions

View File

@@ -53,6 +53,10 @@ template<typename Scalar,typename Index> void cg(int size)
x = ConjugateGradient<SparseMatrixType, Lower>().compute(m3).solve(b);
VERIFY(ref_x.isApprox(x,test_precision<Scalar>()) && "ConjugateGradient: solve, full storage, lower");
x.setRandom();
x = ConjugateGradient<SparseMatrixType, Lower>().compute(m3).solveWithGuess(b,x);
VERIFY(ref_x.isApprox(x,test_precision<Scalar>()) && "ConjugateGradient: solveWithGuess, full storage, lower");
x = ConjugateGradient<SparseMatrixType, Upper>().compute(m3).solve(b);
VERIFY(ref_x.isApprox(x,test_precision<Scalar>()) && "ConjugateGradient: solve, full storage, upper, single dense rhs");