Reference documentation for deal.II version 8.5.1
|
#include <deal.II/lac/shifted_matrix.h>
Public Member Functions | |
ShiftedMatrix (const MatrixType &A, const double sigma) | |
void | shift (const double sigma) |
double | shift () const |
template<typename VectorType > | |
void | vmult (VectorType &dst, const VectorType &src) const |
template<typename VectorType > | |
double | residual (VectorType &dst, const VectorType &src, const VectorType &rhs) const |
Private Attributes | |
SmartPointer< const MatrixType, ShiftedMatrix< MatrixType > > | 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 43 of file shifted_matrix.h.
|
inline |
Constructor. Provide the base matrix and a shift parameter.
Definition at line 164 of file shifted_matrix.h.
|
inline |
Set the shift parameter.
Definition at line 174 of file shifted_matrix.h.
|
inline |
Access to the shift parameter.
Definition at line 182 of file shifted_matrix.h.
|
inline |
Matrix-vector-product.
Definition at line 192 of file shifted_matrix.h.
|
inline |
Residual.
Definition at line 203 of file shifted_matrix.h.
|
private |
Storage for base matrix.
Definition at line 77 of file shifted_matrix.h.
|
private |
Auxiliary vector. Shift parameter.
Definition at line 86 of file shifted_matrix.h.