27 #ifndef MPBLOCKS_CUDA_POLYNOMIAL_STREAMASSIGNMENT_H_
28 #define MPBLOCKS_CUDA_POLYMOMIAL_STREAMASSIGNMENT_H_
36 namespace polynomial {
40 template<
int idx,
typename Scalar,
class Exp1 >
46 template <
class Scalar,
class Exp,
int idx>
58 template <
typename Scalar2>
62 set_storage<idx>(
m_exp) = x;
66 template <
typename Scalar2>
70 return append<Scalar>(
x);
74 template <
typename Scalar,
class Exp,
typename Scalar2>
78 set_storage<0>(
static_cast<Exp&
>(exp) ) = val;
90 #endif // POLYMOMIAL_H_
__host__ __device__ StreamAssignment< Scalar, Exp, idx+1 > operator,(Scalar2 x)
__host__ __device__ StreamAssignment(Exp &exp)
__host__ __device__ StreamAssignment< Scalar, Exp, idx+1 > append(Scalar2 x)
__host__ __device__ __forceinline__ Scalar & set_storage(Polynomial< Scalar, Spec > &poly)