dune-pdelab  2.5-dev
Public Types | Public Member Functions | Protected Attributes | List of all members
Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache > Class Template Reference

#include <dune/pdelab/backend/common/aliasedmatrixview.hh>

Inheritance diagram for Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >:
Inheritance graph

Public Types

typedef M_ Container
 
typedef Container::ElementType ElementType
 
typedef Container::size_type size_type
 
typedef RowCache RowIndexCache
 
typedef ColCache ColIndexCache
 
typedef RowCache::LocalFunctionSpace LFSV
 
typedef ColCache::LocalFunctionSpace LFSU
 
typedef LFSV::Traits::DOFIndex RowDOFIndex
 
typedef LFSV::Traits::GridFunctionSpace::Ordering::Traits::ContainerIndex RowContainerIndex
 
typedef LFSU::Traits::DOFIndex ColDOFIndex
 
typedef LFSU::Traits::GridFunctionSpace::Ordering::Traits::ContainerIndex ColContainerIndex
 
using value_type = ElementType
 
using weight_type = ElementType
 
typedef Container::field_type E
 

Public Member Functions

 AliasedMatrixView ()
 
 AliasedMatrixView (Container &container)
 
void commit ()
 
template<typename LC >
void write (const LC &local_container)
 
template<typename LC >
void add (const LC &local_container)
 
ElementTypeoperator() (size_type i, size_type j)
 
ElementTypeoperator() (const RowDOFIndex &i, const ColDOFIndex &j)
 
ElementTypeoperator() (const RowContainerIndex &i, const ColContainerIndex &j)
 
ElementTypeoperator() (const RowContainerIndex &i, size_type j)
 
ElementTypeoperator() (size_type i, const ColContainerIndex &j)
 
template<typename LFSV , typename LFSU >
void accumulate (const LFSV &lfsv, size_type i, const LFSU &lfsu, size_type j, value_type value)
 
template<typename LFSV , typename LFSU >
void rawAccumulate (const LFSV &lfsv, size_type i, const LFSU &lfsu, size_type j, value_type value)
 
ElementTypedata ()
 
Containercontainer ()
 
void setWeight (weight_type weight)
 
weight_type weight ()
 
const RowIndexCacherowIndexCache () const
 
const ColIndexCachecolIndexCache () const
 
void attach (M_ &container)
 
void detach ()
 
void bind (const RowCache &row_cache, const ColCache &col_cache)
 
void unbind ()
 
size_type N () const
 
size_type M () const
 
template<typename LC >
void read (LC &local_container) const
 
const ElementTypeoperator() (size_type i, size_type j) const
 
const ElementTypeoperator() (const RowDOFIndex &i, const ColDOFIndex &j) const
 
const ElementTypeoperator() (const RowContainerIndex &i, const ColContainerIndex &j) const
 
template<typename LFSV , typename LFSU >
const ElementTypeoperator() (const LFSV &lfsv, size_type i, const LFSU &lfsu, size_type j) const
 
const Containercontainer () const
 

Protected Attributes

M_ * _container
 
const RowCache * _row_cache
 
const ColCache * _col_cache
 
std::conditional< std::is_const< M_ >::value, const ElementType *, ElementType *>::type _data
 

Member Typedef Documentation

◆ ColContainerIndex

template<typename M_ , typename RowCache , typename ColCache >
typedef LFSU::Traits::GridFunctionSpace::Ordering::Traits::ContainerIndex Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::ColContainerIndex

◆ ColDOFIndex

template<typename M_ , typename RowCache , typename ColCache >
typedef LFSU::Traits::DOFIndex Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::ColDOFIndex

◆ ColIndexCache

template<typename M_ , typename RowCache , typename ColCache >
typedef ColCache Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::ColIndexCache

◆ Container

template<typename M_ , typename RowCache , typename ColCache >
typedef M_ Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::Container

◆ E

template<typename M_ , typename RowCache , typename ColCache >
typedef Container::field_type Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::E
inherited

◆ ElementType

template<typename M_ , typename RowCache , typename ColCache >
typedef Container::ElementType Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::ElementType

◆ LFSU

template<typename M_ , typename RowCache , typename ColCache >
typedef ColCache::LocalFunctionSpace Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::LFSU

◆ LFSV

template<typename M_ , typename RowCache , typename ColCache >
typedef RowCache::LocalFunctionSpace Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::LFSV

◆ RowContainerIndex

template<typename M_ , typename RowCache , typename ColCache >
typedef LFSV::Traits::GridFunctionSpace::Ordering::Traits::ContainerIndex Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::RowContainerIndex

◆ RowDOFIndex

template<typename M_ , typename RowCache , typename ColCache >
typedef LFSV::Traits::DOFIndex Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::RowDOFIndex

◆ RowIndexCache

template<typename M_ , typename RowCache , typename ColCache >
typedef RowCache Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::RowIndexCache

◆ size_type

template<typename M_ , typename RowCache , typename ColCache >
typedef Container::size_type Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::size_type

◆ value_type

template<typename M_ , typename RowCache , typename ColCache >
using Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::value_type = ElementType

◆ weight_type

template<typename M_ , typename RowCache , typename ColCache >
using Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::weight_type = ElementType

Constructor & Destructor Documentation

◆ AliasedMatrixView() [1/2]

template<typename M_ , typename RowCache , typename ColCache >
Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::AliasedMatrixView ( )
inline

◆ AliasedMatrixView() [2/2]

template<typename M_ , typename RowCache , typename ColCache >
Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::AliasedMatrixView ( Container container)
inline

Member Function Documentation

◆ accumulate()

template<typename M_ , typename RowCache , typename ColCache >
template<typename LFSV , typename LFSU >
void Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::accumulate ( const LFSV lfsv,
size_type  i,
const LFSU lfsu,
size_type  j,
value_type  value 
)
inline

◆ add()

template<typename M_ , typename RowCache , typename ColCache >
template<typename LC >
void Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::add ( const LC &  local_container)
inline

◆ attach()

template<typename M_ , typename RowCache , typename ColCache >
void Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::attach ( M_ &  container)
inlineinherited

◆ bind()

template<typename M_ , typename RowCache , typename ColCache >
void Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::bind ( const RowCache &  row_cache,
const ColCache &  col_cache 
)
inlineinherited

◆ colIndexCache()

template<typename M_ , typename RowCache , typename ColCache >
const ColIndexCache& Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::colIndexCache ( ) const
inlineinherited

◆ commit()

template<typename M_ , typename RowCache , typename ColCache >
void Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::commit ( )
inline

◆ container() [1/2]

template<typename M_ , typename RowCache , typename ColCache >
const Container& Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::container ( ) const
inlineinherited

◆ container() [2/2]

template<typename M_ , typename RowCache , typename ColCache >
Container& Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::container ( )
inline

◆ data()

template<typename M_ , typename RowCache , typename ColCache >
ElementType* Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::data ( )
inline

◆ detach()

template<typename M_ , typename RowCache , typename ColCache >
void Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::detach ( )
inlineinherited

◆ M()

template<typename M_ , typename RowCache , typename ColCache >
size_type Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::M ( ) const
inlineinherited

◆ N()

template<typename M_ , typename RowCache , typename ColCache >
size_type Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::N ( ) const
inlineinherited

◆ operator()() [1/9]

template<typename M_ , typename RowCache , typename ColCache >
const ElementType& Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::operator() ( size_type  i,
size_type  j 
) const
inlineinherited

◆ operator()() [2/9]

template<typename M_ , typename RowCache , typename ColCache >
const ElementType& Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::operator() ( const RowDOFIndex i,
const ColDOFIndex j 
) const
inlineinherited

◆ operator()() [3/9]

template<typename M_ , typename RowCache , typename ColCache >
const ElementType& Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::operator() ( const RowContainerIndex i,
const ColContainerIndex j 
) const
inlineinherited

◆ operator()() [4/9]

template<typename M_ , typename RowCache , typename ColCache >
template<typename LFSV , typename LFSU >
const ElementType& Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::operator() ( const LFSV lfsv,
size_type  i,
const LFSU lfsu,
size_type  j 
) const
inlineinherited

◆ operator()() [5/9]

template<typename M_ , typename RowCache , typename ColCache >
ElementType& Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::operator() ( size_type  i,
size_type  j 
)
inline

◆ operator()() [6/9]

template<typename M_ , typename RowCache , typename ColCache >
ElementType& Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::operator() ( const RowDOFIndex i,
const ColDOFIndex j 
)
inline

◆ operator()() [7/9]

template<typename M_ , typename RowCache , typename ColCache >
ElementType& Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::operator() ( const RowContainerIndex i,
const ColContainerIndex j 
)
inline

◆ operator()() [8/9]

template<typename M_ , typename RowCache , typename ColCache >
ElementType& Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::operator() ( const RowContainerIndex i,
size_type  j 
)
inline

◆ operator()() [9/9]

template<typename M_ , typename RowCache , typename ColCache >
ElementType& Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::operator() ( size_type  i,
const ColContainerIndex j 
)
inline

◆ rawAccumulate()

template<typename M_ , typename RowCache , typename ColCache >
template<typename LFSV , typename LFSU >
void Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::rawAccumulate ( const LFSV lfsv,
size_type  i,
const LFSU lfsu,
size_type  j,
value_type  value 
)
inline

◆ read()

template<typename M_ , typename RowCache , typename ColCache >
template<typename LC >
void Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::read ( LC &  local_container) const
inlineinherited

◆ rowIndexCache()

template<typename M_ , typename RowCache , typename ColCache >
const RowIndexCache& Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::rowIndexCache ( ) const
inlineinherited

◆ setWeight()

template<typename M_ , typename RowCache , typename ColCache >
void Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::setWeight ( weight_type  weight)
inline

◆ unbind()

template<typename M_ , typename RowCache , typename ColCache >
void Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::unbind ( )
inlineinherited

◆ weight()

template<typename M_ , typename RowCache , typename ColCache >
weight_type Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::weight ( )
inline

◆ write()

template<typename M_ , typename RowCache , typename ColCache >
template<typename LC >
void Dune::PDELab::AliasedMatrixView< M_, RowCache, ColCache >::write ( const LC &  local_container)
inline

Member Data Documentation

◆ _col_cache

template<typename M_ , typename RowCache , typename ColCache >
const ColCache* Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::_col_cache
protectedinherited

◆ _container

template<typename M_ , typename RowCache , typename ColCache >
M_* Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::_container
protectedinherited

◆ _data

template<typename M_ , typename RowCache , typename ColCache >
std::conditional< std::is_const<M_>::value, const ElementType*, ElementType* >::type Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::_data
protectedinherited

◆ _row_cache

template<typename M_ , typename RowCache , typename ColCache >
const RowCache* Dune::PDELab::ConstAliasedMatrixView< M_, RowCache, ColCache >::_row_cache
protectedinherited

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