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 |
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.
Definition at line 35 of file shifted_matrix.h.
| 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.
| 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().
| double ShiftedMatrix< MATRIX >::shift | ( | ) | const [inline] |
Access to the shift parameter.
Definition at line 169 of file shifted_matrix.h.
| 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.
| double ShiftedMatrix< MATRIX >::residual | ( | VECTOR & | dst, |
| const VECTOR & | src, | ||
| const VECTOR & | rhs | ||
| ) | const [inline] |
SmartPointer<const MATRIX,ShiftedMatrix<MATRIX> > ShiftedMatrix< MATRIX >::A [private] |
Storage for base matrix.
Definition at line 70 of file shifted_matrix.h.
double ShiftedMatrix< MATRIX >::sigma [private] |
Auxiliary vector. Shift parameter.
Definition at line 79 of file shifted_matrix.h.
documentation generated on Fri Feb 3 2012 06:04:11 by
doxygen
1.7.2