ug4
|
#include <iterator_product.h>
Public Member Functions | |
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 | |
virtual bool | apply_update_defect (Y &c, X &d)=0 |
compute new correction c = B*d and update defect d := d - A*c | |
virtual SmartPtr< ILinearIterator< X, Y > > | clone ()=0 |
clone | |
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 | |
virtual bool | init (SmartPtr< ILinearOperator< Y, X > > L)=0 |
initialize for linear operator L | |
virtual const char * | name () const =0 |
returns the name of iterator | |
virtual bool | supports_parallel () const |
returns if parallel solving is supported | |
![]() | |
virtual std::string | config_string () const |
SmartPtr< IDamping< X, Y > > | damping () |
returns the scaling | |
ILinearIterator () | |
constructor | |
ILinearIterator (const ILinearIterator< X, Y > &parent) | |
copy constructor | |
void | set_damp (number factor) |
sets the damping to a constant factor | |
void | set_damp (SmartPtr< IDamping< X, Y > > spScaling) |
sets a scaling for the correction | |
virtual | ~ILinearIterator () |
virtual destructor | |
Protected Attributes | |
std::vector< SmartPtr< ILinearIterator< X, Y > > > | m_vIterator |
![]() | |
SmartPtr< IDamping< X, Y > > | m_spDamping |
the scaling | |
Additional Inherited Members | |
![]() | |
typedef Y | codomain_function_type |
Range space. | |
typedef X | domain_function_type |
Domain space. | |
Base class for ILinearIterators build from other ILinearIterators
|
inline |
|
inline |
|
inline |
References ug::CombinedLinearIterator< X, Y >::m_vIterator.
|
inline |
References ug::CombinedLinearIterator< X, Y >::m_vIterator.
|
pure virtual |
compute new correction c = B*d
This method applies the iterator operator, i.e. c = B*d. The domain function d remains unchanged. Note, that this method can always be implemented by creating a copy of d and calling apply_update_defect with this copy.
[in] | d | defect |
[out] | c | correction |
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorProduct< X, Y >, and ug::LinearIteratorSum< X, Y >.
|
pure virtual |
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.
[in,out] | d | defect |
[out] | u | correction |
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorProduct< X, Y >, and ug::LinearIteratorSum< X, Y >.
|
pure virtual |
clone
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorProduct< X, Y >, and ug::LinearIteratorSum< X, Y >.
|
pure virtual |
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.
[in] | J | linearized operator to use as underlying |
[in] | u | linearization point |
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorProduct< X, Y >, and ug::LinearIteratorSum< X, Y >.
|
pure virtual |
initialize for linear operator L
This method passes the operator L that used as underlying by this operator. In addition some preparation step can be made.
[in] | L | linear operator to use as underlying |
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorProduct< X, Y >, and ug::LinearIteratorSum< X, Y >.
|
pure virtual |
returns the name of iterator
This method returns the name of the iterator operator. This function is typically needed, when the iterator operator is used inside of another operator and some debug output should be printed
Implements ug::ILinearIterator< X, Y >.
Implemented in ug::LinearIteratorProduct< X, Y >, and ug::LinearIteratorSum< X, Y >.
|
inlinevirtual |
returns if parallel solving is supported
Implements ug::ILinearIterator< X, Y >.
References ug::CombinedLinearIterator< X, Y >::m_vIterator, and ug::CombinedLinearIterator< X, Y >::supports_parallel().
Referenced by ug::CombinedLinearIterator< X, Y >::supports_parallel().
|
protected |