↰ Return to documentation for file (include/networkit/numerics/Preconditioner/IdentityPreconditioner.hpp
)
/*
* IdentityPreconditioner.hpp
*
* Created on: Apr 23, 2016
* Author: Michael Wegner (michael.wegner@student.kit.edu)
*/
#ifndef NETWORKIT_NUMERICS_PRECONDITIONER_IDENTITY_PRECONDITIONER_HPP_
#define NETWORKIT_NUMERICS_PRECONDITIONER_IDENTITY_PRECONDITIONER_HPP_
namespace NetworKit {
class IdentityPreconditioner {
public:
IdentityPreconditioner() = default;
IdentityPreconditioner(const CSRMatrix &) {}
virtual ~IdentityPreconditioner() = default;
Vector rhs(const Vector &b) const { return b; }
};
} /* namespace NetworKit */
#endif // NETWORKIT_NUMERICS_PRECONDITIONER_IDENTITY_PRECONDITIONER_HPP_