ug4
|
Defines a composite space, (i.e., additive composition from other spaces) More...
#include <metric_spaces.h>
Public Types | |
typedef IGridFunctionSpace< TGridFunction > | base_type |
typedef IComponentSpace< TGridFunction > | obj_type |
typedef TimeDependentSpace< TGridFunction > | time_dependent_obj_type |
typedef std::pair< SmartPtr< obj_type >, number > | weighted_obj_type |
Public Types inherited from ug::IGridFunctionSpace< TGridFunction > | |
typedef TGridFunction | grid_function_type |
typedef TGridFunction::vector_type | vector_type |
Public Member Functions | |
void | add (SmartPtr< obj_type > spSubSpace) |
add space to composite (with weight 1.0) More... | |
void | add (SmartPtr< obj_type > spSubSpace, number sigma) |
add space to composite (with variable weight) More... | |
CompositeSpace () | |
std::string | config_string () const |
print config string More... | |
double | distance (TGridFunction &uFine, TGridFunction &uCoarse) |
virtual double | distance (TGridFunction &x, TGridFunction &y)=0 |
distance (for grid functions) More... | |
virtual double | distance (vector_type &x, vector_type &y) |
OVERRIDE distance (for vectors) More... | |
double | distance2 (TGridFunction &uFine, TGridFunction &uCoarse) |
const std::vector< weighted_obj_type > & | get_subspaces () const |
bool | is_time_dependent () const |
Check, if any object is time-dependent. More... | |
double | norm (TGridFunction &uFine) |
norm (for grid functions) More... | |
virtual double | norm (TGridFunction &x)=0 |
norm (for grid functions) More... | |
virtual double | norm (vector_type &x) |
OVERRIDE norm (for vectors) More... | |
double | norm2 (TGridFunction &uFine) |
void | update_time_data (number t) |
Forward update to all members. More... | |
Public Member Functions inherited from ug::IGridFunctionSpace< TGridFunction > | |
virtual double | distance (vector_type &x, vector_type &y) |
OVERRIDE distance (for vectors) More... | |
virtual double | norm (vector_type &x) |
OVERRIDE norm (for vectors) More... | |
virtual double | scaling () const |
virtual | ~IGridFunctionSpace () |
DTOR. More... | |
Public Member Functions inherited from ug::IBanachSpace< TGridFunction::vector_type > | |
virtual | ~IBanachSpace () |
Protected Attributes | |
std::vector< weighted_obj_type > | m_spWeightedSubspaces |
Defines a composite space, (i.e., additive composition from other spaces)
Employs a l2-type extension: | u |^2 := \sum_I \sigma_I | u |_I^2 TODO: Merge with ApproximationSpace?
typedef IGridFunctionSpace<TGridFunction> ug::CompositeSpace< TGridFunction >::base_type |
typedef IComponentSpace<TGridFunction> ug::CompositeSpace< TGridFunction >::obj_type |
typedef TimeDependentSpace<TGridFunction> ug::CompositeSpace< TGridFunction >::time_dependent_obj_type |
typedef std::pair<SmartPtr<obj_type>, number> ug::CompositeSpace< TGridFunction >::weighted_obj_type |
|
inline |
|
inline |
add space to composite (with weight 1.0)
References ug::CompositeSpace< TGridFunction >::m_spWeightedSubspaces.
|
inline |
add space to composite (with variable weight)
References ug::CompositeSpace< TGridFunction >::m_spWeightedSubspaces.
|
inlinevirtual |
print config string
Reimplemented from ug::IGridFunctionSpace< TGridFunction >.
References ug::CompositeSpace< TGridFunction >::m_spWeightedSubspaces.
|
inlinevirtual |
Implements ug::IGridFunctionSpace< TGridFunction >.
References ug::CompositeSpace< TGridFunction >::distance2().
virtual double ug::IGridFunctionSpace< TGridFunction >::distance |
distance (for grid functions)
|
inline |
OVERRIDE distance (for vectors)
|
inlinevirtual |
Implements ug::IGridFunctionSpace< TGridFunction >.
References ug::CompositeSpace< TGridFunction >::m_spWeightedSubspaces, and UG_LOG.
Referenced by ug::CompositeSpace< TGridFunction >::distance().
|
inline |
|
inline |
Check, if any object is time-dependent.
References ug::CompositeSpace< TGridFunction >::m_spWeightedSubspaces, and SmartPtr< T, FreePolicy >::valid().
|
inlinevirtual |
norm (for grid functions)
Implements ug::IGridFunctionSpace< TGridFunction >.
References ug::CompositeSpace< TGridFunction >::norm2().
virtual double ug::IGridFunctionSpace< TGridFunction >::norm |
norm (for grid functions)
|
inline |
OVERRIDE norm (for vectors)
|
inlinevirtual |
Implements ug::IGridFunctionSpace< TGridFunction >.
References ug::CompositeSpace< TGridFunction >::m_spWeightedSubspaces, and UG_LOG.
Referenced by ug::CompositeSpace< TGridFunction >::norm().
|
inline |
Forward update to all members.
References ug::CompositeSpace< TGridFunction >::m_spWeightedSubspaces, and SmartPtr< T, FreePolicy >::valid().
|
protected |
Referenced by ug::CompositeSpace< TGridFunction >::add(), ug::CompositeSpace< TGridFunction >::config_string(), ug::CompositeSpace< TGridFunction >::distance2(), ug::CompositeSpace< TGridFunction >::get_subspaces(), ug::CompositeSpace< TGridFunction >::is_time_dependent(), ug::CompositeSpace< TGridFunction >::norm2(), and ug::CompositeSpace< TGridFunction >::update_time_data().