All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IdentityPreconditioner.h
Go to the documentation of this file.
1 /*
2  * IdentityPreconditioner.h
3  *
4  * Created on: Apr 23, 2016
5  * Author: Michael Wegner (michael.wegner@student.kit.edu)
6  */
7 
8 #ifndef NETWORKIT_CPP_NUMERICS_PRECONDITIONER_IDENTITYPRECONDITIONER_H_
9 #define NETWORKIT_CPP_NUMERICS_PRECONDITIONER_IDENTITYPRECONDITIONER_H_
10 
11 namespace NetworKit {
12 
18 public:
20  IdentityPreconditioner() = default;
26  virtual ~IdentityPreconditioner() = default;
27 
31  Vector rhs(const Vector& b) const {
32  return b;
33  }
34 };
35 
36 } /* namespace NetworKit */
37 
38 #endif /* NETWORKIT_CPP_NUMERICS_PRECONDITIONER_IDENTITYPRECONDITIONER_H_ */
IdentityPreconditioner(const CSRMatrix &matrix)
Constructs an identity preconditioner for the matrix A.
Definition: IdentityPreconditioner.h:25
Vector rhs(const Vector &b) const
Returns the preconditioned right-hand-side .
Definition: IdentityPreconditioner.h:31
virtual ~IdentityPreconditioner()=default
Simple preconditioner that returns the given vector unchanged.
Definition: IdentityPreconditioner.h:17
The Vector class represents a basic vector with double coefficients.
Definition: Vector.h:25
The CSRMatrix class represents a sparse matrix stored in CSR-Format (i.e.
Definition: CSRMatrix.h:26
IdentityPreconditioner()=default
Default constructor.