Class documentation of Concepts

Loading...
Searching...
No Matches
afterIteration.hh
Go to the documentation of this file.
1
7#ifndef afteriterations_hh
8#define afteriterations_hh
9
10#include "compositions.hh"
11#include "toolbox/sequence.hh"
12
13namespace concepts {
14
15 // ********************************************************* AfterIteration **
16
26 template<class F>
27 class AfterIteration : public Operator<F> {
28 public:
30 typedef F type;
31
39 const uint afterIter = 0);
40 virtual ~AfterIteration() {}
41
42 virtual void operator()(const Function<F>& fncY, Function<F>& fncX);
43
44 const Vector<F>& solution();
45 const Vector<F>& solution(uint i);
46 const Vector<F>& residual();
47 const Vector<F>& residual(uint i);
48 protected:
49 virtual std::ostream& info(std::ostream& os) const;
50 private:
52 Operator<F> &A_, &solver_;
54 uint afterIter_;
56 uint cnt_;
58 Sequence<Vector<F> > solution_;
60 Sequence<Vector<F> > residual_;
61 };
62
63} // namespace concepts
64
65#endif // afteriterations_hh
AfterIteration(Operator< F > &A, Operator< F > &solver, const uint afterIter=0)
F type
Type of data, e.g. matrix entries.
virtual void operator()(const Function< F > &fncY, Function< F > &fncX)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320