ug4
ug::UzawaSlicing< TGridFunction > Class Template Reference

#include <uzawa.h>

+ Inheritance diagram for ug::UzawaSlicing< TGridFunction >:

Public Types

typedef SlicingData< binary_grouping_vector, 2 > base_type
 
- Public Types inherited from ug::SlicingData< binary_grouping_vector, 2 >
typedef std::vector< int > slice_desc_set
 
typedef TVec::value_type slice_desc_type
 
typedef binary_grouping_vector slice_desc_type_vector
 

Public Member Functions

void init (const TGridFunction &u, const std::vector< std::string > &vSchurCmps)
 
 UzawaSlicing (const std::vector< std::string > &vSchurCmps)
 
- Public Member Functions inherited from ug::SlicingData< binary_grouping_vector, 2 >
void add_vector_slice (const VT &full_src, slice_desc_type desc, VT &small_dst, double sigma=1.0) const
 Add: slice of vector -> small vector. More...
 
void add_vector_slice (const VT &small_src, VT &full_dst, slice_desc_type desc, double sigma=1.0) const
 Add: small vector -> slice of a vector. More...
 
SmartPtr< AlgebraLayoutscreate_slice_layouts (ConstSmartPtr< AlgebraLayouts > fullLayouts, slice_desc_type type) const
 Create new slice layouts (as a subset from full layouts). More...
 
void get_matrix (const MT &A, slice_desc_type row_type, slice_desc_type col_type, MT &Aslice) const
 
size_t get_num_elems (slice_desc_type type) const
 Number of elements for each type. More...
 
void get_vector_slice (const VT &full_src, slice_desc_type desc, VT &small_dst) const
 Copy: slice of vector -> small vector. More...
 
bool is_valid ()
 
void set_types (const slice_desc_type_vector &types, bool bClear=false)
 Copy types. More...
 
void set_vector_slice (const VT &small_src, VT &full_dst, slice_desc_type desc) const
 Copy: small vector -> slice of a vector. More...
 
void setup_slice_like (const VT &full_src, slice_desc_type type, VT &vectorslice) const
 Sets an existing sliced vector up correctly. More...
 
SmartPtr< VT > slice_clone (const VT &full_src, slice_desc_type type) const
 Create a (partial) clone. More...
 
SmartPtr< VT > slice_clone_without_values (const VT &full_src, slice_desc_type type) const
 Create a (partial) clone of the vector, without copying values. More...
 
 SlicingData ()
 Constructor. More...
 
 SlicingData (const slice_desc_type_vector &types)
 
void subtract_vector_slice (const VT &full_src, slice_desc_type desc, VT &small_dst) const
 substract: slice of vector -> small vector More...
 
void subtract_vector_slice (const VT &small_src, VT &full_dst, slice_desc_type desc) const
 substract: small vector -> slice of a vector More...
 

Additional Inherited Members

- Protected Member Functions inherited from ug::SlicingData< binary_grouping_vector, 2 >
void clear_set_mappings ()
 Clear all sets. More...
 
void fill_set_mappings ()
 Auto fill for sets. More...
 
bool find_index (slice_desc_type type, int gindex, int &index) const
 returns: local index for a global index (if found) or undefined else. More...
 
slice_desc_type get_type (size_t index)
 returns type for a global index More...
 
void replace_indices_in_layout (slice_desc_type type, IndexLayout &il) const
 
void reset_set_mappings ()
 Clear & auto fill. More...
 
slice_desc_setslice (slice_desc_type type)
 
const slice_desc_setslice (slice_desc_type type) const
 returns the set of global indices for a given type More...
 
- Protected Attributes inherited from ug::SlicingData< binary_grouping_vector, 2 >
slice_desc_set m_slice_set [N]
 N mappings: islice(type) -> iglobal. More...
 
slice_desc_type_vector m_slice_types
 global vector with mappings iglobal -> type(iglobal) More...
 
bool m_valid
 

Member Typedef Documentation

◆ base_type

template<typename TGridFunction >
typedef SlicingData<binary_grouping_vector, 2> ug::UzawaSlicing< TGridFunction >::base_type

Constructor & Destructor Documentation

◆ UzawaSlicing()

template<typename TGridFunction >
ug::UzawaSlicing< TGridFunction >::UzawaSlicing ( const std::vector< std::string > &  vSchurCmps)
inline

Member Function Documentation

◆ init()

template<typename TGridFunction >
void ug::UzawaSlicing< TGridFunction >::init ( const TGridFunction &  u,
const std::vector< std::string > &  vSchurCmps 
)

The documentation for this class was generated from the following file: