27 #ifndef MPBLOCKS_CUDA_POLYNOMIAL_ASSIGN_H_
28 #define MPBLOCKS_CUDA_POLYNOMIAL_ASSIGN_H_
32 namespace polynomial {
35 template<
bool Enable,
typename Scalar,
class Spec,
class Exp,
int idx >
43 template<
typename Scalar,
class Spec,
class Exp,
int idx >
44 struct Assign< true, Scalar, Spec, Exp, idx >
49 set<idx>(p) = get<idx>(exp);
53 template<
typename Scalar,
class Spec,
class Exp >
A sparse, statically sized polynomial.
__host__ __device__ static __forceinline__ void step(Polynomial< Scalar, Spec > &p, const Exp &exp)
__host__ __device__ __forceinline__ void assign(Polynomial< Scalar, Spec > &p, const Exp &exp)
__host__ __device__ static __forceinline__ void step(Polynomial< Scalar, Spec > &p, const Exp &exp)