27 #ifndef MPBLOCKS_CUDA_POLYNOMIAL_NORMALIZED_H_
28 #define MPBLOCKS_CUDA_POLYNOMIAL_NORMALIZED_H_
32 namespace polynomial {
35 template <
typename Scalar,
class Exp,
class Spec>
37 public RValue< Scalar, Normalized<Scalar,Exp,Spec>, Spec >
55 template <
typename Scalar,
class Exp,
class Spec>
61 template <
int idx,
typename Scalar,
class Exp,
class Spec>
66 return get<idx>( exp.exp ) / get<max_idx>( exp.exp );
70 template <
typename Scalar,
class Exp,
class Spec>
88 #endif // NORMALIZED_H_
__host__ __device__ Normalized(Exp const &exp)
expression template for sum of two matrix expressions
expression template for rvalues
__host__ __device__ Scalar eval(Scalar x)
retrieve the max element of the list (linear without short circut so it works with non-sorted arrays ...
__host__ __device__ Normalized< Scalar, Exp, Spec > normalized(const RValue< Scalar, Exp, Spec > &exp)