21 template<
typename TVec,
typename TIndexSequence,
typename TSfinae =
void>
25 template<
typename TVal,
typename TVec,
typename TSfinae =
void>
29 template<
typename TVec,
typename TSfinae =
void>
33 template<
typename TVecL,
typename TVecR,
typename TSfinae =
void>
41 template<
typename TIndexSequence,
typename TVec>
50 template<
typename TSubDim,
typename TVec>
55 "The sub-Vec has to be smaller (or same size) then the original Vec.");
58 using IdxSubSequence = std::make_integer_sequence<std::size_t, TSubDim::value>;
59 return subVecFromIndices<IdxSubSequence>(vec);
65 template<
typename TSubDim,
typename TVec>
70 "The sub-Vec has to be smaller (or same size) then the original Vec.");
76 return subVecFromIndices<IdxSubSequence>(vec);
81 template<
typename TVal,
typename TVec>
89 template<
typename TVec>
97 template<
typename TVecL,
typename TVecR>
#define ALPAKA_FN_HOST_ACC
#define ALPAKA_NO_HOST_ACC_WARNING
Disable nvcc warning: 'calling a host function from host device function.' Usage: ALPAKA_NO_HOST_ACC_...
The alpaka accelerator library.
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto castVec(TVec const &vec)
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto concatVec(TVecL const &vecL, TVecR const &vecR)
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto reverseVec(TVec const &vec)
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto subVecEnd(TVec const &vec)
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto subVecBegin(TVec const &vec)
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto subVecFromIndices(TVec const &vec)
Builds a new vector by selecting the elements of the source vector in the given order....
typename trait::DimType< T >::type Dim
The dimension type trait alias template to remove the ::type.
Trait for casting a vector.
Trait for concatenating two vectors.
Trait for reversing a vector.
Trait for selecting a sub-vector.