<pre class="example">
<code>
-#include <lac/solver_control.h>
+#include <lac/solver_control.h>
SolverControl control(1000,1e-6);
</code>
</p>
<p class="Example">
<span class="example">Example:</span>We initialize a Bicgstab-solver for
-the problem <code>Au=f</code>.
+the problem <code>Au=f</code>, using the <a href="#control">solver control</a>
+explained above. <code>A</code> shall be a spare matrix and the vectors
+<code>u</code> and <code>f</code> shall be vectors of doubles. Next,
+we solve the problem.
</p>
<pre class="example">
<code>
+// Include files for solver control, solver and preconditioner
+#include <lac/solver_control.h>
+#include <lac/solver_bicgstab.h>
+#include <lac/precondition.h>
+
+// Include files for matrices and vectors
+#include <lac/sparsematrix.h>
+#include <lac/vector.h>
+
+// Initialize the solver control and the solver
+
+SolverControl control(1000,1e-6);
+VectorMemory<Vector<double> > vectormem;
+SolverBicgstab<SparseMatrix,Vector<double> > solver(control,vectormem);
+
+// Initialize the problem matrices. Well...they shouldn't only be
+// initialized but also contain the problem, so this is just an example
+// to get the definitions and types and everything right.
+// <em>To make it clear: This code as it is will not do anything because</em>
+// <em>it does not contain any mathematical problem !</em>
+
+SparseMatrix<double> A;
+Vector<double> u,f;
+// NEED TO DEFINE A PRECONDITIONER
+
+solver.solve(A,u,f,precondition);
</code>
</pre>