|
void | add_iterator (SmartPtr< ILinearIterator< X, Y > > I) |
|
void | add_iterator (SmartPtr< ILinearIterator< X, Y > > I, size_t nr) |
|
virtual bool | apply (Y &c, const X &d)=0 |
| compute new correction c = B*d More...
|
|
virtual bool | apply_update_defect (Y &c, X &d)=0 |
| compute new correction c = B*d and update defect d := d - A*c More...
|
|
virtual SmartPtr< ILinearIterator< X, Y > > | clone ()=0 |
| clone More...
|
|
| CombinedLinearIterator () |
|
| CombinedLinearIterator (const std::vector< SmartPtr< ILinearIterator< X, Y > > > &vIterator) |
|
virtual bool | init (SmartPtr< ILinearOperator< Y, X > > J, const Y &u)=0 |
| initialize for operator J(u) and linearization point u More...
|
|
virtual bool | init (SmartPtr< ILinearOperator< Y, X > > L)=0 |
| initialize for linear operator L More...
|
|
virtual const char * | name () const =0 |
| returns the name of iterator More...
|
|
virtual bool | supports_parallel () const |
| returns if parallel solving is supported More...
|
|
virtual std::string | config_string () const |
|
SmartPtr< IDamping< X, Y > > | damping () |
| returns the scaling More...
|
|
| ILinearIterator () |
| constructor More...
|
|
| ILinearIterator (const ILinearIterator< X, Y > &parent) |
| copy constructor More...
|
|
void | set_damp (number factor) |
| sets the damping to a constant factor More...
|
|
void | set_damp (SmartPtr< IDamping< X, Y > > spScaling) |
| sets a scaling for the correction More...
|
|
virtual | ~ILinearIterator () |
| virtual destructor More...
|
|
template<typename X, typename Y>
class ug::CombinedLinearIterator< X, Y >
Base class for ILinearIterators build from other ILinearIterators
template<typename X , typename Y >
template<typename X , typename Y >
compute new correction c = B*d and update defect d := d - A*c
This method applies the inverse operator, i.e. c = B*d. The domain function d is changed in the way, that the defect d := d - A*c is returned in the function. This is always useful, when the iterating algorithm can (or must) update the defect during computation (this is e.g. the case for the geometric multigrid method). Note, that this method can always be implemented by calling apply and then computing d := d - A*c.
- Parameters
-
[in,out] | d | defect |
[out] | u | correction |
- Returns
- bool success flag
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorSum< X, Y >, and ug::LinearIteratorProduct< X, Y >.
template<typename X , typename Y >
initialize for operator J(u) and linearization point u
This method passes the linear operator J(u) that should be used as underlying by this iterator. As second argument the linearization point is passed. This is needed e.g. for the geometric multigrid method.
- Parameters
-
[in] | J | linearized operator to use as underlying |
[in] | u | linearization point |
- Returns
- bool success flag
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorSum< X, Y >, and ug::LinearIteratorProduct< X, Y >.
template<typename X , typename Y >
template<typename X , typename Y >