33 #ifndef __H__LIB_ALGEBRA__OPERATOR__INTERFACE__OPERATOR_ITERATOR__
34 #define __H__LIB_ALGEBRA__OPERATOR__INTERFACE__OPERATOR_ITERATOR__
79 template <
typename X,
typename Y = X>
98 virtual const char*
name()
const = 0;
136 virtual bool apply(Y& c,
const X& d) = 0;
192 std::stringstream ss; ss <<
name() <<
"( damping = " <<
m_spDamping->config_string() <<
")";
return ss.str();
Definition: smart_pointer.h:108
constant damping factor
Definition: damping.h:101
describes a linear iterator
Definition: linear_iterator.h:81
SmartPtr< IDamping< X, Y > > m_spDamping
the scaling
Definition: linear_iterator.h:197
virtual bool supports_parallel() const =0
returns if parallel solving is supported
virtual bool apply_update_defect(Y &c, X &d)=0
compute new correction c = B*d and update defect d := d - A*c
void set_damp(number factor)
sets the damping to a constant factor
Definition: linear_iterator.h:168
void set_damp(SmartPtr< IDamping< X, Y > > spScaling)
sets a scaling for the correction
Definition: linear_iterator.h:163
virtual bool apply(Y &c, const X &d)=0
compute new correction c = B*d
virtual bool init(SmartPtr< ILinearOperator< Y, X > > L)=0
initialize for linear operator L
virtual std::string config_string() const
Definition: linear_iterator.h:190
virtual ~ILinearIterator()
virtual destructor
Definition: linear_iterator.h:179
Y codomain_function_type
Range space.
Definition: linear_iterator.h:87
X domain_function_type
Domain space.
Definition: linear_iterator.h:84
virtual bool init(SmartPtr< ILinearOperator< Y, X > > J, const Y &u)=0
initialize for operator J(u) and linearization point u
SmartPtr< IDamping< X, Y > > damping()
returns the scaling
Definition: linear_iterator.h:173
virtual SmartPtr< ILinearIterator< X, Y > > clone()=0
clone
virtual const char * name() const =0
returns the name of iterator
ILinearIterator(const ILinearIterator< X, Y > &parent)
copy constructor
Definition: linear_iterator.h:185
ILinearIterator()
constructor
Definition: linear_iterator.h:182
describes a linear mapping X->Y
Definition: linear_operator.h:80
double number
Definition: types.h:124
SmartPtr< T, FreePolicy > make_sp(T *inst)
returns a SmartPtr for the passed raw pointer
Definition: smart_pointer.h:836