Public Member Functions | Private Attributes

MGMatrix< MATRIX, VECTOR > Class Template Reference
[Multilevel support]

Inheritance diagram for MGMatrix< MATRIX, VECTOR >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MGMatrix (MGLevelObject< MATRIX > *=0)
void set_matrix (MGLevelObject< MATRIX > *M)
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

Private Attributes

SmartPointer< MGLevelObject
< MATRIX >, MGMatrix< MATRIX,
VECTOR > > 
matrix

Detailed Description

template<class MATRIX = SparseMatrix<double>, class VECTOR = Vector<double>>
class MGMatrix< MATRIX, VECTOR >

Deprecated:
Use the much simpler class MG::Matrix instead.

Multilevel matrix. This class implements the interface defined by MGMatrixBase, using MGLevelObject of an arbitrary matrix class.

Author:
Guido Kanschat, 2002

Definition at line 96 of file mg_matrix.h.


Constructor & Destructor Documentation

template<class MATRIX , class VECTOR >
MGMatrix< MATRIX, VECTOR >::MGMatrix ( MGLevelObject< MATRIX > *  p = 0 )

Constructor. The argument is handed over to the SmartPointer constructor. The matrix object must exist longer as the MGMatrix object, since only a pointer is stored.

Definition at line 355 of file mg_matrix.h.


Member Function Documentation

template<class MATRIX , class VECTOR >
void MGMatrix< MATRIX, VECTOR >::set_matrix ( MGLevelObject< MATRIX > *  M )

Set the matrix object to be used. The matrix object must exist longer as the MGMatrix object, since only a pointer is stored.

Definition at line 363 of file mg_matrix.h.

References LAPACKSupport::matrix.

template<class MATRIX , class VECTOR >
void MGMatrix< 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 371 of file mg_matrix.h.

References Assert, StandardExceptions::ExcNotInitialized(), and LAPACKSupport::matrix.

template<class MATRIX , class VECTOR >
void MGMatrix< 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 384 of file mg_matrix.h.

References Assert, StandardExceptions::ExcNotInitialized(), and LAPACKSupport::matrix.

template<class MATRIX , class VECTOR >
void MGMatrix< 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 397 of file mg_matrix.h.

References Assert, StandardExceptions::ExcNotInitialized(), and LAPACKSupport::matrix.

template<class MATRIX , class VECTOR >
void MGMatrix< 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 410 of file mg_matrix.h.

References Assert, StandardExceptions::ExcNotInitialized(), and LAPACKSupport::matrix.

template<class MATRIX , class VECTOR >
std::size_t MGMatrix< MATRIX, VECTOR >::memory_consumption (  ) const

Memory used by this object.

Definition at line 423 of file mg_matrix.h.

References LAPACKSupport::matrix.


Member Data Documentation

template<class MATRIX = SparseMatrix<double>, class VECTOR = Vector<double>>
SmartPointer<MGLevelObject<MATRIX>,MGMatrix<MATRIX,VECTOR> > MGMatrix< MATRIX, VECTOR >::matrix [private]

Pointer to the matrix objects on each level.

Definition at line 163 of file mg_matrix.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:09 by doxygen 1.7.2