Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Private Attributes | List of all members
ShiftedMatrixGeneralized< MATRIX, MASSMATRIX, VECTOR > Class Template Reference

#include <shifted_matrix.h>

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 99 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 211 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 221 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 228 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 236 of file shifted_matrix.h.

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 251 of file shifted_matrix.h.

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 134 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 138 of file shifted_matrix.h.

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

Auxiliary vector.

Definition at line 143 of file shifted_matrix.h.

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

Shift parameter.

Definition at line 148 of file shifted_matrix.h.


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