33 #ifndef __H__LIB_ALGEBRA__OPERATOR__INTERFACE__LINEAR_OPERATOR_INVERSE__
34 #define __H__LIB_ALGEBRA__OPERATOR__INTERFACE__LINEAR_OPERATOR_INVERSE__
78 template <
typename X,
typename Y = X>
112 virtual const char*
name()
const = 0;
172 virtual bool apply(Y& u,
const X& f) = 0;
197 UG_THROW(
"No cloning implemented.");
231 "inverted has not been set.");
Definition: smart_pointer.h:296
Definition: smart_pointer.h:108
Definition: convergence_check.h:72
describes a linear iterator
Definition: linear_iterator.h:81
describes a linear mapping X->Y
Definition: linear_operator.h:80
describes an inverse linear mapping X->Y
Definition: linear_operator_inverse.h:80
ConstSmartPtr< IConvergenceCheck< X > > convergence_check() const
returns the convergence check
Definition: linear_operator_inverse.h:202
number reduction() const
returns the current relative reduction
Definition: linear_operator_inverse.h:214
SmartPtr< IConvergenceCheck< X > > convergence_check()
returns the convergence check
Definition: linear_operator_inverse.h:205
SmartPtr< ILinearOperator< Y, X > > m_spLinearOperator
Operator that is inverted by this Inverse Operator.
Definition: linear_operator_inverse.h:238
number defect() const
returns the current defect
Definition: linear_operator_inverse.h:208
SmartPtr< ILinearOperator< Y, X > > linear_operator()
returns the current Operator this Inverse Operator is initialized for
Definition: linear_operator_inverse.h:227
ILinearOperatorInverse()
constructor setting convergence check to (100, 1e-12, 1e-12, true)
Definition: linear_operator_inverse.h:90
virtual SmartPtr< ILinearIterator< X, Y > > clone()
clone
Definition: linear_operator_inverse.h:195
virtual bool apply_update_defect(Y &u, X &f)
Definition: linear_operator_inverse.h:190
ILinearOperatorInverse(SmartPtr< IConvergenceCheck< X > > spConvCheck)
Default constructor.
Definition: linear_operator_inverse.h:96
virtual bool apply(Y &u, const X &f)=0
applies inverse operator, i.e. returns u = A^{-1} f
void set_convergence_check(SmartPtr< IConvergenceCheck< X > > spConvCheck)
set the convergence check
Definition: linear_operator_inverse.h:220
virtual std::string config_string() const
returns information about configuration parameters
Definition: linear_operator_inverse.h:122
Y codomain_function_type
Range space.
Definition: linear_operator_inverse.h:86
virtual ~ILinearOperatorInverse()
virtual destructor
Definition: linear_operator_inverse.h:102
virtual bool init(SmartPtr< ILinearOperator< Y, X > > J, const Y &u)
initializes for the inverse for a linearized operator at linearization point u
Definition: linear_operator_inverse.h:154
int step() const
returns the current number of steps
Definition: linear_operator_inverse.h:211
X domain_function_type
Domain space.
Definition: linear_operator_inverse.h:83
virtual bool apply_return_defect(Y &u, X &f)=0
applies inverse operator, i.e. returns u = A^{-1} f and returns defect d := f - A*u
virtual int standard_offset() const
returns the standard offset for output
Definition: linear_operator_inverse.h:217
virtual bool supports_parallel() const =0
returns if parallel solving is supported
virtual bool init(SmartPtr< ILinearOperator< Y, X > > L)
initializes for the inverse for a linear operator
Definition: linear_operator_inverse.h:135
SmartPtr< IConvergenceCheck< X > > m_spConvCheck
smart pointer holding the convergence check
Definition: linear_operator_inverse.h:241
virtual const char * name() const =0
returns the name of the operator inverse
Definition: convergence_check.h:179
const NullSmartPtr SPNULL
The equivalent to NULL for smart pointers.
Definition: smart_pointer.h:90
#define UG_THROW(msg)
Definition: error.h:57
double number
Definition: types.h:124
function ProblemDisc new(problemDesc, dom)