Reference documentation for deal.II version 8.1.0
Public Member Functions | Private Attributes | List of all members
mg::Matrix< VECTOR > Class Template Reference

#include <mg_matrix.h>

Inheritance diagram for mg::Matrix< VECTOR >:
[legend]

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
 
std::size_t memory_consumption () const
 
- Public Member Functions inherited from Subscriptor
 Subscriptor ()
 
 Subscriptor (const Subscriptor &)
 
virtual ~Subscriptor ()
 
Subscriptoroperator= (const Subscriptor &)
 
void subscribe (const char *identifier=0) const
 
void unsubscribe (const char *identifier=0) const
 
unsigned int n_subscriptions () const
 
void list_subscribers () const
 
 DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects.\n"<< "(Additional information: "<< arg3<< ")\n"<< "Note the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "more information on what this error means.")
 
 DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier \""<< arg2<< "\" did subscribe to this object of class "<< arg1)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

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

Definition at line 43 of file mg_matrix.h.

Constructor & Destructor Documentation

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

Default constructor for an empty object.

Definition at line 241 of file mg_matrix.h.

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().

Definition at line 233 of file mg_matrix.h.

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

Definition at line 222 of file mg_matrix.h.

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

Access matrix on a level.

Definition at line 248 of file mg_matrix.h.

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 >.

Definition at line 256 of file mg_matrix.h.

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 >.

Definition at line 267 of file mg_matrix.h.

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 >.

Definition at line 278 of file mg_matrix.h.

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 >.

Definition at line 288 of file mg_matrix.h.

template<class VECTOR >
std::size_t mg::Matrix< VECTOR >::memory_consumption ( ) const
inline

Memory used by this object.

Definition at line 299 of file mg_matrix.h.


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