33 #ifndef __H__UG__LIB_DISC__OPERATOR__LINEAR_OPERATOR__PRODUCT__
34 #define __H__UG__LIB_DISC__OPERATOR__LINEAR_OPERATOR__PRODUCT__
47 template <
typename X,
typename Y>
58 virtual const char*
name()
const = 0;
76 virtual bool apply(Y& c,
const X& d) = 0;
94 template <
typename X,
typename Y>
109 virtual const char*
name()
const {
return "IteratorProduct";}
133 virtual bool apply(Y& c,
const X& d)
149 bRes &=
m_vIterator[i]->apply_update_defect(*spCTmp,d);
162 template <
typename X,
typename Y>
177 virtual const char*
name()
const {
return "IteratorProduct";}
203 virtual bool apply(Y& c,
const X& d)
224 bool bRet =
apply(c, d);
Definition: smart_pointer.h:108
Definition: iterator_product.h:49
virtual SmartPtr< ILinearIterator< X, Y > > clone()=0
clone
virtual const char * name() const =0
returns the name of iterator
virtual bool init(SmartPtr< ILinearOperator< Y, X > > L)=0
initialize for linear operator L
virtual bool init(SmartPtr< ILinearOperator< Y, X > > J, const Y &u)=0
initialize for operator J(u) and linearization point u
CombinedLinearIterator()
Definition: iterator_product.h:51
CombinedLinearIterator(const std::vector< SmartPtr< ILinearIterator< X, Y > > > &vIterator)
Definition: iterator_product.h:53
virtual bool apply(Y &c, const X &d)=0
compute new correction c = B*d
void add_iterator(SmartPtr< ILinearIterator< X, Y > > I, size_t nr)
Definition: iterator_product.h:83
virtual bool apply_update_defect(Y &c, X &d)=0
compute new correction c = B*d and update defect d := d - A*c
void add_iterator(SmartPtr< ILinearIterator< X, Y > > I)
Definition: iterator_product.h:81
std::vector< SmartPtr< ILinearIterator< X, Y > > > m_vIterator
Definition: iterator_product.h:89
virtual bool supports_parallel() const
returns if parallel solving is supported
Definition: iterator_product.h:61
describes a linear iterator
Definition: linear_iterator.h:81
describes a linear mapping X->Y
Definition: linear_operator.h:80
Definition: iterator_product.h:96
virtual bool apply(Y &c, const X &d)
compute new correction c = B*d
Definition: iterator_product.h:133
virtual const char * name() const
returns the name of iterator
Definition: iterator_product.h:109
virtual bool apply_update_defect(Y &c, X &d)
compute new correction c = B*d and update defect d := d - A*c
Definition: iterator_product.h:141
virtual bool init(SmartPtr< ILinearOperator< Y, X > > L)
initialize for linear operator L
Definition: iterator_product.h:122
LinearIteratorProduct(const std::vector< SmartPtr< ILinearIterator< X, Y > > > &vIterator)
Definition: iterator_product.h:104
virtual bool init(SmartPtr< ILinearOperator< Y, X > > J, const Y &u)
initialize for operator J(u) and linearization point u
Definition: iterator_product.h:112
LinearIteratorProduct()
Definition: iterator_product.h:102
CombinedLinearIterator< X, Y > base_type
Definition: iterator_product.h:98
std::vector< SmartPtr< ILinearIterator< X, Y > > > m_vIterator
Definition: iterator_product.h:89
virtual SmartPtr< ILinearIterator< X, Y > > clone()
clone
Definition: iterator_product.h:156
Definition: iterator_product.h:164
LinearIteratorSum()
Definition: iterator_product.h:170
virtual bool init(SmartPtr< ILinearOperator< Y, X > > L)
initialize for linear operator L
Definition: iterator_product.h:191
LinearIteratorSum(const std::vector< SmartPtr< ILinearIterator< X, Y > > > &vIterator)
Definition: iterator_product.h:172
virtual const char * name() const
returns the name of iterator
Definition: iterator_product.h:177
CombinedLinearIterator< X, Y > base_type
Definition: iterator_product.h:166
virtual SmartPtr< ILinearIterator< X, Y > > clone()
clone
Definition: iterator_product.h:230
virtual bool apply(Y &c, const X &d)
compute new correction c = B*d
Definition: iterator_product.h:203
virtual bool init(SmartPtr< ILinearOperator< Y, X > > J, const Y &u)
initialize for operator J(u) and linearization point u
Definition: iterator_product.h:180
std::vector< SmartPtr< ILinearIterator< X, Y > > > m_vIterator
Definition: iterator_product.h:89
SmartPtr< ILinearOperator< Y, X > > m_spOp
Definition: iterator_product.h:235
virtual bool apply_update_defect(Y &c, X &d)
compute new correction c = B*d and update defect d := d - A*c
Definition: iterator_product.h:222
SmartPtr< T, FreePolicy > make_sp(T *inst)
returns a SmartPtr for the passed raw pointer
Definition: smart_pointer.h:836