23 #include <cusp/detail/config.h>
25 #include <thrust/execution_policy.h>
41 template <
typename DerivedPolicy,
44 void cg(
const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
54 template <
class LinearOperator,
56 void cg(LinearOperator& A,
60 template <
typename DerivedPolicy,
64 void cg(
const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
74 template <
class LinearOperator,
77 void cg(LinearOperator& A,
82 template <
typename DerivedPolicy,
87 void cg(
const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
157 template <
class LinearOperator,
160 class Preconditioner>
161 void cg(LinearOperator& A,
172 #include <cusp/krylov/detail/cg.inl>
void cg(LinearOperator &A, Vector &x, Vector &b, Monitor &monitor, Preconditioner &M)
Conjugate Gradient method.