numerics
Loading...
Searching...
No Matches
krylov.cpp File Reference
#include "linalg/solvers/krylov.hpp"
#include "core/vector.hpp"
#include <cmath>
#include <algorithm>
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  num
 

Functions

SolverResult num::gmres (MatVecFn matvec, idx n, const Vector &b, Vector &x, real tol=1e-6, idx max_iter=1000, idx restart=30)
 Restarted GMRES(restart) – matrix-free interface.
 
SolverResult num::gmres (const SparseMatrix &A, const Vector &b, Vector &x, real tol=1e-6, idx max_iter=1000, idx restart=30)
 Restarted GMRES with a sparse (CSR) matrix.
 
SolverResult num::gmres (const Matrix &A, const Vector &b, Vector &x, real tol=1e-6, idx max_iter=1000, idx restart=30, Backend backend=default_backend)
 Restarted GMRES with a dense matrix.