1#ifndef VECTOR_SUBSET_HPP
2#define VECTOR_SUBSET_HPP
7template<
unsigned int dim,
20 :v_all(v_all),indexes(indexes)
25 template <
unsigned int p>
26 __device__ __host__
inline auto get(
size_t id)
const ->
decltype(v_all.template get<p>(0))
28 return v_all.template get<p>(indexes.template get<0>(
id));
34 template<
typename T,
typename Memory,
template<
typename>
class layout_base,
typename grow_p,
unsigned int impl>
45 :v_all(v_all),indexes(indexes)
50 template<
unsigned int ... prp> vector_dist_ker<dim,St,prop,layout_base> toKernel()
52 vector_subset_ker<dim,St,prop,layout_base> v(v_all.toKernel(), indexes.toKernel());
57 template <
unsigned int p>
58 inline auto get(
size_t id)
const ->
decltype(v_all.template get<p>(0))
60 return v_all.template get<p>(indexes.template get<0>(
id));
Implementation of 1-D std::vector like structure.
convert a type into constant type
aggregate of properties, from a list of object if create a struct that follow the OPENFPM native stru...
Transform the boost::fusion::vector into memory specification (memory_traits)
grid interface available when on gpu