PreconditionedMatrix< MATRIX, PRECOND, VECTOR > Class Template Reference
[Preconditioners]

Inheritance diagram for PreconditionedMatrix< MATRIX, PRECOND, VECTOR >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 PreconditionedMatrix (const MATRIX &A, const PRECOND &P, VectorMemory< VECTOR > &mem)
void vmult (VECTOR &dst, const VECTOR &src) const
void Tvmult (VECTOR &dst, const VECTOR &src) const
double residual (VECTOR &dst, const VECTOR &src, const VECTOR &rhs) const

Private Attributes

const MATRIX & A
const PRECOND & P
VectorMemory< VECTOR > & mem


Detailed Description

template<class MATRIX, class PRECOND, class VECTOR>
class PreconditionedMatrix< MATRIX, PRECOND, VECTOR >

Deprecated:
Use ProductMatrix instead.
Matrix with preconditioner. Given a matrix $A$ and a preconditioner $P$, this class implements a new matrix with the matrix-vector product $PA$. It needs an auxiliary vector for that.

By this time, this is considered a temporary object to be plugged into eigenvalue solvers. Therefore, no SmartPointer is used for A and P.

Author:
Guido Kanschat, 2000

Constructor & Destructor Documentation

template<class MATRIX , class PRECOND , class VECTOR >
PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::PreconditionedMatrix ( const MATRIX &  A,
const PRECOND &  P,
VectorMemory< VECTOR > &  mem 
)

Constructor. Provide matrix, preconditioner and a memory pool to obtain the auxiliary vector.


Member Function Documentation

template<class MATRIX , class PRECOND , class VECTOR >
void PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::vmult ( VECTOR &  dst,
const VECTOR &  src 
) const

Preconditioned matrix-vector-product.

template<class MATRIX , class PRECOND , class VECTOR >
void PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::Tvmult ( VECTOR &  dst,
const VECTOR &  src 
) const

Transposed preconditioned matrix-vector-product.

template<class MATRIX , class PRECOND , class VECTOR >
double PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::residual ( VECTOR &  dst,
const VECTOR &  src,
const VECTOR &  rhs 
) const

Residual $b-PAx$.


Member Data Documentation

template<class MATRIX , class PRECOND , class VECTOR >
const MATRIX& PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::A [private]

Storage for the matrix.

template<class MATRIX , class PRECOND , class VECTOR >
const PRECOND& PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::P [private]

Storage for preconditioner.

template<class MATRIX , class PRECOND , class VECTOR >
VectorMemory<VECTOR>& PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::mem [private]

Memory pool for vectors.


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

deal.II documentation generated on Sat Aug 15 16:52:13 2009 by doxygen 1.5.9