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 |
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 | |||
) |
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 |
Preconditioned matrix-vector-product.
void PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::Tvmult | ( | VECTOR & | dst, | |
const VECTOR & | src | |||
) | const |
Transposed preconditioned matrix-vector-product.
double PreconditionedMatrix< MATRIX, PRECOND, VECTOR >::residual | ( | VECTOR & | dst, | |
const VECTOR & | src, | |||
const VECTOR & | rhs | |||
) | const |
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.