#include <preconditioner.h>
Public Types | |
typedef VECTOR::size_type | size_type |
Public Member Functions | |
JacobiPreconditioner (const MATRIX &A) | |
const size_type | row_dimension () const |
void | apply (const VECTOR &x, VECTOR &Px) const |
void | apply_preconditioner (const VECTOR &Px, VECTOR &x) const |
Protected Attributes | |
const MATRIX & | A |
As a nontrivial example class, provide the Jacobi preconditioner, i.e., P=diag(A).
typedef VECTOR::size_type MathTL::JacobiPreconditioner< MATRIX, VECTOR >::size_type |
type of indices and size type (cf. STL containers)
Reimplemented from MathTL::Preconditioner< VECTOR >.
MathTL::JacobiPreconditioner< MATRIX, VECTOR >::JacobiPreconditioner | ( | const MATRIX & | A | ) |
default constructor, takes the matrix A as input parameter
void MathTL::JacobiPreconditioner< MATRIX, VECTOR >::apply | ( | const VECTOR & | x, |
VECTOR & | Px | ||
) | const [virtual] |
apply P, i.e., reverse the preconditioning
Implements MathTL::Preconditioner< VECTOR >.
void MathTL::JacobiPreconditioner< MATRIX, VECTOR >::apply_preconditioner | ( | const VECTOR & | Px, |
VECTOR & | x | ||
) | const [virtual] |
apply P^{-1}, i.e., perform the preconditioning
Implements MathTL::Preconditioner< VECTOR >.
const size_type MathTL::JacobiPreconditioner< MATRIX, VECTOR >::row_dimension | ( | ) | const [inline, virtual] |
row dimension
Implements MathTL::Preconditioner< VECTOR >.
const MATRIX& MathTL::JacobiPreconditioner< MATRIX, VECTOR >::A [protected] |
pointer to the matrix class under consideration