Fix bicgstab example

This commit is contained in:
Gael Guennebaud 2014-12-02 14:32:55 +01:00
parent e9c5418249
commit b0152fdb1d

View File

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