dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::PDELab::Simple::VectorContainer< GFS, C > Class Template Reference

#include <dune/pdelab/backend/simple/vector.hh>

Inheritance diagram for Dune::PDELab::Simple::VectorContainer< GFS, C >:
Inheritance graph

Public Types

typedef C Container
 
typedef Container::value_type ElementType
 
typedef ElementType E
 
typedef ElementType field_type
 
typedef GFS GridFunctionSpace
 
typedef Container::size_type size_type
 
typedef GFS::Ordering::Traits::ContainerIndex ContainerIndex
 
typedef Container::iterator iterator
 
typedef Container::const_iterator const_iterator
 
template<typename LFSCache >
using LocalView = UncachedVectorView< VectorContainer, LFSCache >
 
template<typename LFSCache >
using ConstLocalView = ConstUncachedVectorView< const VectorContainer, LFSCache >
 

Public Member Functions

 VectorContainer (const VectorContainer &rhs)
 
 VectorContainer (const GFS &gfs, Backend::attached_container=Backend::attached_container())
 
 VectorContainer (const GFS &gfs, Backend::unattached_container)
 Creates a VectorContainer without allocating storage. More...
 
 VectorContainer (const GFS &gfs, Container &container)
 Constructs an VectorContainer for an explicitly given vector object. More...
 
 VectorContainer (const GFS &gfs, const E &e)
 
void detach ()
 
void attach (std::shared_ptr< Container > container)
 
bool attached () const
 
const std::shared_ptr< Container > & storage () const
 
size_type N () const
 
VectorContaineroperator= (const VectorContainer &r)
 
VectorContaineroperator= (const E &e)
 
VectorContaineroperator*= (const E &e)
 
VectorContaineroperator+= (const E &e)
 
VectorContaineroperator+= (const VectorContainer &y)
 
VectorContaineroperator-= (const VectorContainer &y)
 
Eoperator[] (const ContainerIndex &ci)
 
const Eoperator[] (const ContainerIndex &ci) const
 
Dune::template FieldTraits< E >::real_type two_norm () const
 
Dune::template FieldTraits< E >::real_type one_norm () const
 
Dune::template FieldTraits< E >::real_type infinity_norm () const
 
E operator* (const VectorContainer &y) const
 
E dot (const VectorContainer &y) const
 
VectorContaineraxpy (const E &a, const VectorContainer &y)
 
Containerbase ()
 
const Containerbase () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
size_t flatsize () const
 
const GFS & gridFunctionSpace () const
 

Member Typedef Documentation

◆ const_iterator

template<typename GFS , typename C >
typedef Container::const_iterator Dune::PDELab::Simple::VectorContainer< GFS, C >::const_iterator

◆ ConstLocalView

template<typename GFS , typename C >
template<typename LFSCache >
using Dune::PDELab::Simple::VectorContainer< GFS, C >::ConstLocalView = ConstUncachedVectorView<const VectorContainer,LFSCache>

◆ Container

template<typename GFS , typename C >
typedef C Dune::PDELab::Simple::VectorContainer< GFS, C >::Container

◆ ContainerIndex

template<typename GFS , typename C >
typedef GFS::Ordering::Traits::ContainerIndex Dune::PDELab::Simple::VectorContainer< GFS, C >::ContainerIndex

◆ E

template<typename GFS , typename C >
typedef ElementType Dune::PDELab::Simple::VectorContainer< GFS, C >::E

◆ ElementType

template<typename GFS , typename C >
typedef Container::value_type Dune::PDELab::Simple::VectorContainer< GFS, C >::ElementType

◆ field_type

template<typename GFS , typename C >
typedef ElementType Dune::PDELab::Simple::VectorContainer< GFS, C >::field_type

◆ GridFunctionSpace

template<typename GFS , typename C >
typedef GFS Dune::PDELab::Simple::VectorContainer< GFS, C >::GridFunctionSpace

◆ iterator

template<typename GFS , typename C >
typedef Container::iterator Dune::PDELab::Simple::VectorContainer< GFS, C >::iterator

◆ LocalView

template<typename GFS , typename C >
template<typename LFSCache >
using Dune::PDELab::Simple::VectorContainer< GFS, C >::LocalView = UncachedVectorView<VectorContainer,LFSCache>

◆ size_type

template<typename GFS , typename C >
typedef Container::size_type Dune::PDELab::Simple::VectorContainer< GFS, C >::size_type

Constructor & Destructor Documentation

◆ VectorContainer() [1/5]

template<typename GFS , typename C >
Dune::PDELab::Simple::VectorContainer< GFS, C >::VectorContainer ( const VectorContainer< GFS, C > &  rhs)
inline

◆ VectorContainer() [2/5]

template<typename GFS , typename C >
Dune::PDELab::Simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
Backend::attached_container  = Backend::attached_container() 
)
inline

◆ VectorContainer() [3/5]

template<typename GFS , typename C >
Dune::PDELab::Simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
Backend::unattached_container   
)
inline

Creates a VectorContainer without allocating storage.

◆ VectorContainer() [4/5]

template<typename GFS , typename C >
Dune::PDELab::Simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
Container container 
)
inline

Constructs an VectorContainer for an explicitly given vector object.

Parameters
gfsGridFunctionSpace that determines the size and the blocking of the vector
containerThe actual container class

◆ VectorContainer() [5/5]

template<typename GFS , typename C >
Dune::PDELab::Simple::VectorContainer< GFS, C >::VectorContainer ( const GFS &  gfs,
const E e 
)
inline

Member Function Documentation

◆ attach()

template<typename GFS , typename C >
void Dune::PDELab::Simple::VectorContainer< GFS, C >::attach ( std::shared_ptr< Container container)
inline

◆ attached()

template<typename GFS , typename C >
bool Dune::PDELab::Simple::VectorContainer< GFS, C >::attached ( ) const
inline

◆ axpy()

template<typename GFS , typename C >
VectorContainer & Dune::PDELab::Simple::VectorContainer< GFS, C >::axpy ( const E a,
const VectorContainer< GFS, C > &  y 
)
inline

◆ base() [1/2]

template<typename GFS , typename C >
Container & Dune::PDELab::Simple::VectorContainer< GFS, C >::base ( )
inline

◆ base() [2/2]

template<typename GFS , typename C >
const Container & Dune::PDELab::Simple::VectorContainer< GFS, C >::base ( ) const
inline

◆ begin() [1/2]

template<typename GFS , typename C >
iterator Dune::PDELab::Simple::VectorContainer< GFS, C >::begin ( )
inline

◆ begin() [2/2]

template<typename GFS , typename C >
const_iterator Dune::PDELab::Simple::VectorContainer< GFS, C >::begin ( ) const
inline

◆ detach()

template<typename GFS , typename C >
void Dune::PDELab::Simple::VectorContainer< GFS, C >::detach ( )
inline

◆ dot()

template<typename GFS , typename C >
E Dune::PDELab::Simple::VectorContainer< GFS, C >::dot ( const VectorContainer< GFS, C > &  y) const
inline

◆ end() [1/2]

template<typename GFS , typename C >
iterator Dune::PDELab::Simple::VectorContainer< GFS, C >::end ( )
inline

◆ end() [2/2]

template<typename GFS , typename C >
const_iterator Dune::PDELab::Simple::VectorContainer< GFS, C >::end ( ) const
inline

◆ flatsize()

template<typename GFS , typename C >
size_t Dune::PDELab::Simple::VectorContainer< GFS, C >::flatsize ( ) const
inline

◆ gridFunctionSpace()

template<typename GFS , typename C >
const GFS & Dune::PDELab::Simple::VectorContainer< GFS, C >::gridFunctionSpace ( ) const
inline

◆ infinity_norm()

template<typename GFS , typename C >
Dune::template FieldTraits< E >::real_type Dune::PDELab::Simple::VectorContainer< GFS, C >::infinity_norm ( ) const
inline

◆ N()

template<typename GFS , typename C >
size_type Dune::PDELab::Simple::VectorContainer< GFS, C >::N ( ) const
inline

◆ one_norm()

template<typename GFS , typename C >
Dune::template FieldTraits< E >::real_type Dune::PDELab::Simple::VectorContainer< GFS, C >::one_norm ( ) const
inline

◆ operator*()

template<typename GFS , typename C >
E Dune::PDELab::Simple::VectorContainer< GFS, C >::operator* ( const VectorContainer< GFS, C > &  y) const
inline

◆ operator*=()

template<typename GFS , typename C >
VectorContainer & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator*= ( const E e)
inline

◆ operator+=() [1/2]

template<typename GFS , typename C >
VectorContainer & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator+= ( const E e)
inline

◆ operator+=() [2/2]

template<typename GFS , typename C >
VectorContainer & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator+= ( const VectorContainer< GFS, C > &  y)
inline

◆ operator-=()

template<typename GFS , typename C >
VectorContainer & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator-= ( const VectorContainer< GFS, C > &  y)
inline

◆ operator=() [1/2]

template<typename GFS , typename C >
VectorContainer & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator= ( const E e)
inline

◆ operator=() [2/2]

template<typename GFS , typename C >
VectorContainer & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator= ( const VectorContainer< GFS, C > &  r)
inline

◆ operator[]() [1/2]

template<typename GFS , typename C >
E & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator[] ( const ContainerIndex ci)
inline

◆ operator[]() [2/2]

template<typename GFS , typename C >
const E & Dune::PDELab::Simple::VectorContainer< GFS, C >::operator[] ( const ContainerIndex ci) const
inline

◆ storage()

template<typename GFS , typename C >
const std::shared_ptr< Container > & Dune::PDELab::Simple::VectorContainer< GFS, C >::storage ( ) const
inline

◆ two_norm()

template<typename GFS , typename C >
Dune::template FieldTraits< E >::real_type Dune::PDELab::Simple::VectorContainer< GFS, C >::two_norm ( ) const
inline

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