Public Member Functions | Private Attributes
mg::Matrix< VECTOR > Class Template Reference
Inheritance diagram for mg::Matrix< VECTOR >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Matrix ()
template<class MATRIX >
 Matrix (const MGLevelObject< MATRIX > &M)
template<class MATRIX >
void initialize (const MGLevelObject< MATRIX > &M)
const PointerMatrixBase< VECTOR > & operator[] (unsigned int level) const
virtual void vmult (const unsigned int level, VECTOR &dst, const VECTOR &src) const
virtual void vmult_add (const unsigned int level, VECTOR &dst, const VECTOR &src) const
virtual void Tvmult (const unsigned int level, VECTOR &dst, const VECTOR &src) const
virtual void Tvmult_add (const unsigned int level, VECTOR &dst, const VECTOR &src) const
unsigned int memory_consumption () const

Private Attributes

MGLevelObject
< std_cxx1x::shared_ptr
< PointerMatrixBase< VECTOR > > > 
matrices

Detailed Description

template<class VECTOR = Vector<double>>
class mg::Matrix< VECTOR >

Multilevel matrix. This matrix stores an MGLevelObject of PointerMatrixBase objects. It implementes the interface defined in MGMatrixBase, so that it can be used as a matrix in Multigrid.

Author:
Guido Kanschat
Date:
2002, 2010

Constructor & Destructor Documentation

template<class VECTOR >
mg::Matrix< VECTOR >::Matrix ( ) [inline]

Default constructor for an empty object.

template<class VECTOR >
template<class MATRIX >
mg::Matrix< VECTOR >::Matrix ( const MGLevelObject< MATRIX > &  M) [inline]

Constructor setting up pointers to the matrices in M by calling initialize().


Member Function Documentation

template<class VECTOR >
template<class MATRIX >
void mg::Matrix< VECTOR >::initialize ( const MGLevelObject< MATRIX > &  M) [inline]

Initialize the object such that the level multiplication uses the matrices in M

References MGLevelObject< Object >::max_level(), and MGLevelObject< Object >::min_level().

template<class VECTOR >
const PointerMatrixBase< VECTOR > & mg::Matrix< VECTOR >::operator[] ( unsigned int  level) const [inline]

Access matrix on a level.

template<class VECTOR >
void mg::Matrix< VECTOR >::vmult ( const unsigned int  level,
VECTOR &  dst,
const VECTOR &  src 
) const [virtual]

Matrix-vector-multiplication on a certain level.

Implements MGMatrixBase< VECTOR >.

template<class VECTOR >
void mg::Matrix< VECTOR >::vmult_add ( const unsigned int  level,
VECTOR &  dst,
const VECTOR &  src 
) const [virtual]

Adding matrix-vector-multiplication on a certain level.

Implements MGMatrixBase< VECTOR >.

template<class VECTOR >
void mg::Matrix< VECTOR >::Tvmult ( const unsigned int  level,
VECTOR &  dst,
const VECTOR &  src 
) const [virtual]

Transpose matrix-vector-multiplication on a certain level.

Implements MGMatrixBase< VECTOR >.

template<class VECTOR >
void mg::Matrix< VECTOR >::Tvmult_add ( const unsigned int  level,
VECTOR &  dst,
const VECTOR &  src 
) const [virtual]

Adding transpose matrix-vector-multiplication on a certain level.

Implements MGMatrixBase< VECTOR >.

template<class VECTOR >
unsigned int mg::Matrix< VECTOR >::memory_consumption ( ) const [inline]

Memory used by this object.


Member Data Documentation

template<class VECTOR = Vector<double>>
MGLevelObject<std_cxx1x::shared_ptr<PointerMatrixBase<VECTOR> > > mg::Matrix< VECTOR >::matrices [private]

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

deal.II documentation generated on Fri Aug 12 2011 15:01:09 by doxygen 1.7.4