fix CG example

This commit is contained in:
Gael Guennebaud 2011-11-24 08:19:13 +01:00
parent 01b4b6e456
commit 2d4fe54b73

View File

@ -120,7 +120,7 @@ struct traits<ConjugateGradient<_MatrixType,_UpLo,_Preconditioner> >
* SparseMatrix<double> A(n,n);
* // fill A and b
* ConjugateGradient<SparseMatrix<double> > cg;
* cg(A);
* cg.compute(A);
* x = cg.solve(b);
* std::cout << "#iterations: " << cg.iterations() << std::endl;
* std::cout << "estimated error: " << cg.error() << std::endl;