dune-fem 2.12-git
Loading...
Searching...
No Matches
Dune::Fem::DynamicReferenceVector< K, A > Class Template Reference

An implementation of DenseVector which uses a std::vector of references as storage. More...

#include <dune/fem/storage/referencevector.hh>

Inheritance diagram for Dune::Fem::DynamicReferenceVector< K, A >:
Inheritance graph

Public Types

typedef BaseType::size_type size_type
 
typedef BaseType::value_type value_type
 
typedef value_type FieldType
 
typedef DenseMatVecTraits< ThisType >::container_type DofStorageType
 
typedef Traits::derived_type derived_type
 
typedef FieldTraits< value_type >::field_type field_type
 
typedef Traits::value_type block_type
 
typedef DenseIterator< DenseVector, value_typeIterator
 
typedef Iterator iterator
 
typedef DenseIterator< const DenseVector, const value_typeConstIterator
 
typedef ConstIterator const_iterator
 

Public Member Functions

 DynamicReferenceVector (const A &a=A())
 Constructor with uninitialized vector.
 
 DynamicReferenceVector (size_type n, const A &a=A())
 Constructor with uninitialized vector of size n.
 
 DynamicReferenceVector (const ThisType &other)
 Copy constructor.
 
 DynamicReferenceVector (ThisType &&other)
 Move constructor.
 
ThisTypeoperator= (const value_type &k)
 
template<class V >
ThisTypeoperator= (const DenseVector< V > &other)
 
ThisTypeoperator= (const ThisType &other)
 
ThisTypeoperator= (ThisType &&other)
 
size_type capacity () const
 
void resize (size_type n)
 
void reserve (size_type n)
 
void bind (size_type i, K &u)
 Bind i-th entry to a reference.
 
void unbind (size_type i)
 Unbind i-th entry.
 
size_type size () const
 
value_typeoperator[] (size_type i)
 
const value_typeoperator[] (size_type i) const
 
void clear ()
 
constexpr value_typefront ()
 
constexpr const value_typefront () const
 
constexpr value_typeback ()
 
constexpr const value_typeback () const
 
constexpr bool empty () const
 
constexpr Iterator begin ()
 
constexpr ConstIterator begin () const
 
constexpr Iterator end ()
 
constexpr ConstIterator end () const
 
constexpr Iterator beforeEnd ()
 
constexpr ConstIterator beforeEnd () const
 
constexpr Iterator beforeBegin ()
 
constexpr ConstIterator beforeBegin () const
 
constexpr Iterator find (size_type i)
 
constexpr ConstIterator find (size_type i) const
 
constexpr derived_typeoperator+= (const DenseVector< Other > &x)
 
constexpr std::enable_if< std::is_convertible< ValueType, value_type >::value, derived_type >::type & operator+= (const ValueType &kk)
 
constexpr derived_typeoperator-= (const DenseVector< Other > &x)
 
constexpr std::enable_if< std::is_convertible< ValueType, value_type >::value, derived_type >::type & operator-= (const ValueType &kk)
 
constexpr derived_type operator+ (const DenseVector< Other > &b) const
 
constexpr derived_type operator- (const DenseVector< Other > &b) const
 
constexpr derived_type operator- () const
 
constexpr std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & operator*= (const FieldType &kk)
 
constexpr std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & operator/= (const FieldType &kk)
 
constexpr bool operator== (const DenseVector< Other > &x) const
 
constexpr bool operator!= (const DenseVector< Other > &x) const
 
constexpr derived_typeaxpy (const field_type &a, const DenseVector< Other > &x)
 
constexpr PromotionTraits< field_type, typenameDenseVector< Other >::field_type >::PromotedType operator* (const DenseVector< Other > &x) const
 
constexpr PromotionTraits< field_type, typenameDenseVector< Other >::field_type >::PromotedType dot (const DenseVector< Other > &x) const
 
constexpr FieldTraits< value_type >::real_type one_norm () const
 
constexpr FieldTraits< value_type >::real_type one_norm_real () const
 
constexpr FieldTraits< value_type >::real_type two_norm () const
 
constexpr FieldTraits< value_type >::real_type two_norm2 () const
 
constexpr FieldTraits< vt >::real_type infinity_norm () const
 
constexpr FieldTraits< vt >::real_type infinity_norm () const
 
constexpr FieldTraits< vt >::real_type infinity_norm_real () const
 
constexpr FieldTraits< vt >::real_type infinity_norm_real () const
 
constexpr size_type N () const
 
constexpr size_type dim () const
 
std::ostreamoperator<< (std::ostream &s, const DenseVector< V > &v)
 

Static Public Attributes

static constexpr int blocklevel
 

Detailed Description

template<class K, class A>
class Dune::Fem::DynamicReferenceVector< K, A >

An implementation of DenseVector which uses a std::vector of references as storage.

Template Parameters
Tis the field type (use float, double, complex, etc)
Aallocator type

Member Typedef Documentation

◆ DofStorageType

template<class K , class A >
typedef DenseMatVecTraits<ThisType>::container_type Dune::Fem::DynamicReferenceVector< K, A >::DofStorageType

◆ FieldType

template<class K , class A >
typedef value_type Dune::Fem::DynamicReferenceVector< K, A >::FieldType

◆ size_type

template<class K , class A >
typedef BaseType::size_type Dune::Fem::DynamicReferenceVector< K, A >::size_type

◆ value_type

template<class K , class A >
typedef BaseType::value_type Dune::Fem::DynamicReferenceVector< K, A >::value_type

Constructor & Destructor Documentation

◆ DynamicReferenceVector() [1/4]

template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( const A &  a = A())
inlineexplicit

Constructor with uninitialized vector.

◆ DynamicReferenceVector() [2/4]

template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( size_type  n,
const A &  a = A() 
)
inlineexplicit

Constructor with uninitialized vector of size n.

◆ DynamicReferenceVector() [3/4]

template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( const ThisType other)
inline

Copy constructor.

◆ DynamicReferenceVector() [4/4]

template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( ThisType &&  other)
inline

Move constructor.

Member Function Documentation

◆ bind()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::bind ( size_type  i,
K &  u 
)
inline

Bind i-th entry to a reference.

◆ capacity()

template<class K , class A >
size_type Dune::Fem::DynamicReferenceVector< K, A >::capacity ( ) const
inline

◆ clear()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::clear ( )
inline

◆ operator=() [1/4]

template<class K , class A >
template<class V >
ThisType & Dune::Fem::DynamicReferenceVector< K, A >::operator= ( const DenseVector< V > &  other)
inline

◆ operator=() [2/4]

template<class K , class A >
ThisType & Dune::Fem::DynamicReferenceVector< K, A >::operator= ( const ThisType other)
inline

◆ operator=() [3/4]

template<class K , class A >
ThisType & Dune::Fem::DynamicReferenceVector< K, A >::operator= ( const value_type k)
inline

◆ operator=() [4/4]

template<class K , class A >
ThisType & Dune::Fem::DynamicReferenceVector< K, A >::operator= ( ThisType &&  other)
inline

◆ operator[]() [1/2]

template<class K , class A >
value_type & Dune::Fem::DynamicReferenceVector< K, A >::operator[] ( size_type  i)
inline

◆ operator[]() [2/2]

template<class K , class A >
const value_type & Dune::Fem::DynamicReferenceVector< K, A >::operator[] ( size_type  i) const
inline

◆ reserve()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::reserve ( size_type  n)
inline

◆ resize()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::resize ( size_type  n)
inline

◆ size()

template<class K , class A >
size_type Dune::Fem::DynamicReferenceVector< K, A >::size ( ) const
inline

◆ unbind()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::unbind ( size_type  i)
inline

Unbind i-th entry.


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