Public Member Functions | Private Attributes

ShiftedMatrix< MATRIX > Class Template Reference
[Derived matrices]

List of all members.

Public Member Functions

 ShiftedMatrix (const MATRIX &A, const double sigma)
void shift (const double sigma)
double shift () const
template<class VECTOR >
void vmult (VECTOR &dst, const VECTOR &src) const
template<class VECTOR >
double residual (VECTOR &dst, const VECTOR &src, const VECTOR &rhs) const

Private Attributes

SmartPointer< const MATRIX,
ShiftedMatrix< MATRIX > > 
A
double sigma

Detailed Description

template<class MATRIX>
class ShiftedMatrix< MATRIX >

Matrix with shifted diagonal values.

Given a matrix A, this class implements a matrix-vector product with A+s I, where s is a provided shift parameter.

Author:
Guido Kanschat, 2000, 2001

Definition at line 35 of file shifted_matrix.h.


Constructor & Destructor Documentation

template<class MATRIX >
ShiftedMatrix< MATRIX >::ShiftedMatrix ( const MATRIX A,
const double  sigma 
) [inline]

Constructor. Provide the base matrix and a shift parameter.

Definition at line 152 of file shifted_matrix.h.


Member Function Documentation

template<class MATRIX >
void ShiftedMatrix< MATRIX >::shift ( const double  sigma ) [inline]

Set the shift parameter.

Definition at line 161 of file shifted_matrix.h.

Referenced by EigenInverse< VECTOR >::solve().

template<class MATRIX >
double ShiftedMatrix< MATRIX >::shift (  ) const [inline]

Access to the shift parameter.

Definition at line 169 of file shifted_matrix.h.

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

Matrix-vector-product.

Definition at line 179 of file shifted_matrix.h.

References LAPACKSupport::A.

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

Residual.

Definition at line 190 of file shifted_matrix.h.

References LAPACKSupport::A.


Member Data Documentation

template<class MATRIX>
SmartPointer<const MATRIX,ShiftedMatrix<MATRIX> > ShiftedMatrix< MATRIX >::A [private]

Storage for base matrix.

Definition at line 70 of file shifted_matrix.h.

template<class MATRIX>
double ShiftedMatrix< MATRIX >::sigma [private]

Auxiliary vector. Shift parameter.

Definition at line 79 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