Reference documentation for deal.II version 8.5.1
|
#include <deal.II/lac/shifted_matrix.h>
Public Member Functions | |
ShiftedMatrixGeneralized (const MatrixType &A, const MatrixType2 &M, const double sigma) | |
void | shift (const double sigma) |
double | shift () const |
void | vmult (VectorType &dst, const VectorType &src) const |
double | residual (VectorType &dst, const VectorType &src, const VectorType &rhs) const |
Private Attributes | |
SmartPointer< const MatrixType, ShiftedMatrixGeneralized< MatrixType, MatrixType2, VectorType > > | A |
SmartPointer< const MatrixType2, ShiftedMatrixGeneralized< MatrixType, MatrixType2, VectorType > > | M |
VectorType | aux |
double | sigma |
Matrix with shifted diagonal values with respect to a certain scalar product.
Given a matrix A
, this class implements a matrix-vector product with A+s M, where s is a provided shift parameter and M
is the matrix representing the identity
Definition at line 107 of file shifted_matrix.h.
|
inline |
Constructor. Provide the base matrix and a shift parameter.
Definition at line 219 of file shifted_matrix.h.
|
inline |
Set the shift parameter.
Definition at line 229 of file shifted_matrix.h.
|
inline |
Access to the shift parameter.
Definition at line 236 of file shifted_matrix.h.
|
inline |
Matrix-vector-product.
Definition at line 245 of file shifted_matrix.h.
|
inline |
Residual.
Definition at line 261 of file shifted_matrix.h.
|
private |
Storage for base matrix.
Definition at line 141 of file shifted_matrix.h.
|
private |
Storage for mass matrix.
Definition at line 145 of file shifted_matrix.h.
|
mutableprivate |
Auxiliary vector.
Definition at line 150 of file shifted_matrix.h.
|
private |
Shift parameter.
Definition at line 155 of file shifted_matrix.h.