Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_PCGSolver.H File Reference
#include <AMReX_Config.H>
#include <AMReX_Algorithm.H>
#include <AMReX_Array.H>
#include <cmath>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  amrex

Functions

template<int N, typename T, typename M, typename P>
__host__ __device__ int amrex::pcg_solve (T *__restrict__ x, T *__restrict__ r, M const &mat, P const &precond, int maxiter, T rel_tol)
 Fixed-size preconditioned conjugate-gradient solver.

Detailed Description

Lightweight device-friendly preconditioned conjugate-gradient routine.