36 template<
typename T,
int s>
57 template<
typename T,
int s>
75 template<
typename T,
int s>
98 static const bool value = (m & (m-1)) == 0;
103 static const bool value = (m & 1) == 1;
106 template<
bool cond,
typename T,
typename Then,
typename Else>
111 template<
typename T,
typename Then,
typename Else>
116 template<
typename T, T x>
121 template<
typename T,
template<T>
class Fn, T x, T p=0>
130 template<
typename T, T i,
typename Tail=null_type>
136 template<
int k,
int l>
148 template<
bool b,
typename T=
void>
156 template<
typename T,
int p>
158 static const bool value = (
sizeof(T) & ((1 << p) - 1)) == 0;
__host__ __device__ T sum(const array< T, s > &a)
__host__ __device__ array< T, 0 > make_array()
__host__ static __device__ array< T, 1 > impl(T v, T i=1)
__host__ static __device__ Array impl(T v=0, T i=1)
static_range< k+1, l > tail
__host__ static __device__ T impl(const Array &a, const T &p)
__host__ static __device__ T impl(const Array &a, const T &p)