numerics 0.1.0
Loading...
Searching...
No Matches
pcg.hpp File Reference

Preconditioned conjugate gradient. More...

#include "core/policy.hpp"
#include "core/vector.hpp"
#include "linalg/solvers/preconditioner.hpp"
#include "linalg/solvers/solver_result.hpp"
#include "core/concepts.hpp"
#include <cmath>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  num
 

Functions

template<class Op , class M >
requires SPDLinearOperator<Op, Vector, Vector> && Preconditioner<M>
SolverResult num::pcg (const Op &A, const M &M_op, const Vector &b, Vector &x, real tol=1e-10, idx max_iter=1000, Backend backend=default_backend)
 

Detailed Description

Preconditioned conjugate gradient.

Definition in file pcg.hpp.