|
numerics
|
#include "linalg/solvers/cg.hpp"#include "core/parallel/cuda_ops.hpp"#include <cmath>#include <stdexcept>Go to the source code of this file.
Namespaces | |
| namespace | num |
Functions | |
| SolverResult | num::cg (const Matrix &A, const Vector &b, Vector &x, real tol=1e-10, idx max_iter=1000, Backend backend=default_backend) |
| Conjugate gradient solver for Ax = b. | |
| SolverResult | num::cg_matfree (MatVecFn matvec, const Vector &b, Vector &x, real tol=1e-6, idx max_iter=1000) |
| Matrix-free conjugate gradient for Ax = b where A is SPD. | |