mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
compilation fix with conjugate_gradient_solve_retval_with_guess
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user