Public Member Functions | Private Attributes

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,
ShiftedMatrixGeneralized
< MATRIX, MASSMATRIX, VECTOR > > 
A
SmartPointer< const MASSMATRIX,
ShiftedMatrixGeneralized
< MATRIX, MASSMATRIX, VECTOR > > 
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

Definition at line 94 of file shifted_matrix.h.


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.

Definition at line 206 of file shifted_matrix.h.


Member Function Documentation

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

Set the shift parameter.

Definition at line 216 of file shifted_matrix.h.

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

Access to the shift parameter.

Definition at line 223 of file shifted_matrix.h.

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

Matrix-vector-product.

Definition at line 231 of file shifted_matrix.h.

References LAPACKSupport::A.

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

Residual.

Definition at line 246 of file shifted_matrix.h.

References LAPACKSupport::A.


Member Data Documentation

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

Storage for base matrix.

Definition at line 129 of file shifted_matrix.h.

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

Storage for mass matrix.

Definition at line 133 of file shifted_matrix.h.

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

Auxiliary vector.

Definition at line 138 of file shifted_matrix.h.

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

Shift parameter.

Definition at line 143 of file shifted_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:11 by doxygen 1.7.2