![]() |
Reference documentation for deal.II version 8.1.0
|
#include <shifted_matrix.h>
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 40 of file shifted_matrix.h.
|
inline |
Constructor. Provide the base matrix and a shift parameter.
Definition at line 157 of file shifted_matrix.h.
|
inline |
Set the shift parameter.
Definition at line 166 of file shifted_matrix.h.
|
inline |
Access to the shift parameter.
Definition at line 174 of file shifted_matrix.h.
|
inline |
Matrix-vector-product.
Definition at line 184 of file shifted_matrix.h.
|
inline |
Residual.
Definition at line 195 of file shifted_matrix.h.
|
private |
Storage for base matrix.
Definition at line 75 of file shifted_matrix.h.
|
private |
Auxiliary vector. Shift parameter.
Definition at line 84 of file shifted_matrix.h.