
Public Member Functions | |
| PreconditionedMatrix (const MATRIX &A, const PRECOND &P, VectorMemory< VECTOR > &mem) | |
| void | vmult (VECTOR &dst, const VECTOR &src) const |
| void | Tvmult (VECTOR &dst, const VECTOR &src) const |
| double | residual (VECTOR &dst, const VECTOR &src, const VECTOR &rhs) const |
Private Attributes | |
| const MATRIX & | A |
| const PRECOND & | P |
| VectorMemory< VECTOR > & | mem |
and a preconditioner
, this class implements a new matrix with the matrix-vector product
. It needs an auxiliary vector for that.
By this time, this is considered a temporary object to be plugged into eigenvalue solvers. Therefore, no SmartPointer is used for A and P.
| PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::PreconditionedMatrix | ( | const MATRIX & | A, | |
| const PRECOND & | P, | |||
| VectorMemory< VECTOR > & | mem | |||
| ) | [inline] |
Constructor. Provide matrix, preconditioner and a memory pool to obtain the auxiliary vector.
| void PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::vmult | ( | VECTOR & | dst, | |
| const VECTOR & | src | |||
| ) | const [inline] |
Preconditioned matrix-vector-product.
| void PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::Tvmult | ( | VECTOR & | dst, | |
| const VECTOR & | src | |||
| ) | const [inline] |
Transposed preconditioned matrix-vector-product.
| double PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::residual | ( | VECTOR & | dst, | |
| const VECTOR & | src, | |||
| const VECTOR & | rhs | |||
| ) | const [inline] |
Residual
.
const MATRIX& PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::A [private] |
Storage for the matrix.
const PRECOND& PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::P [private] |
Storage for preconditioner.
VectorMemory<VECTOR>& PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::mem [private] |
Memory pool for vectors.
documentation generated on Fri Nov 21 07:13:23 2008 by
doxygen
1.5.6