ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR > Class Template Reference
[Derived matrices]

List of all members.

Public Member Functions

 ShiftedMatrixGeneralized (const MATRIX &A, const MASSMATRIX &M, const double sigma)
void shift (const double sigma)
double shift () const
void vmult (VECTOR &dst, const VECTOR &src) const
double residual (VECTOR &dst, const VECTOR &src, const VECTOR &rhs) const

Private Attributes

SmartPointer< const MATRIX > A
SmartPointer< const MASSMATRIX > M
VECTOR aux
double sigma


Detailed Description

template<class MATRIX, class MASSMATRIX, class VECTOR>
class ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >

Matrix with shifted diagonal values with respect to a certain scalar product.

Given a matrix A, this class implements a matrix-vector product with A+s M, where s is a provided shift parameter and M is the matrix representing the identity

Author:
Guido Kanschat, 2001

Constructor & Destructor Documentation

template<class MATRIX , class MASSMATRIX , class VECTOR >
ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::ShiftedMatrixGeneralized ( const MATRIX &  A,
const MASSMATRIX &  M,
const double  sigma 
) [inline]

Constructor. Provide the base matrix and a shift parameter.


Member Function Documentation

template<class MATRIX , class MASSMATRIX , class VECTOR >
void ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::shift ( const double  sigma  )  [inline]

template<class MATRIX , class MASSMATRIX , class VECTOR >
double ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::shift (  )  const [inline]

Access to the shift parameter.

References ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::sigma.

template<class MATRIX , class MASSMATRIX , class VECTOR >
void ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::vmult ( VECTOR &  dst,
const VECTOR &  src 
) const [inline]

template<class MATRIX , class MASSMATRIX , class VECTOR >
double ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::residual ( VECTOR &  dst,
const VECTOR &  src,
const VECTOR &  rhs 
) const [inline]


Member Data Documentation

template<class MATRIX , class MASSMATRIX , class VECTOR >
SmartPointer<const MATRIX> ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::A [private]

template<class MATRIX , class MASSMATRIX , class VECTOR >
SmartPointer<const MASSMATRIX> ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::M [private]

template<class MATRIX , class MASSMATRIX , class VECTOR >
VECTOR ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::aux [private]

template<class MATRIX , class MASSMATRIX , class VECTOR >
double ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR >::sigma [private]


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

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