Go to the documentation of this file.
21 #ifndef __indexContainer_hpp__
22 #define __indexContainer_hpp__
33 template<
typename IndexType>
46 template<
typename ViewType>
91 views_(
"indexContainer", numElems)
130 template<
typename executionSpace>
134 if constexpr (isHostAccessible<executionSpace>())
155 return IndexAccessor<HostViewType>(
views_.h_view);
160 return IndexAccessor<DeviceViewType>(
views_.d_veiw);
auto indicesDevice() const
void fillSequence(Vector< T, Allocator > &vec, int32 start, int32 end, const T &startVal)
indexContainer(IndexType *data, int32 numElems)
INLINE_FUNCTION_HD IndexType max() const
INLINE_FUNCTION_HD size_t empty() const
INLINE_FUNCTION_H void copy(const ViewType1D< dType, dProperties... > &dst, const ViewType1D< sType, sProperties... > &src)
~indexContainer()=default
INLINE_FUNCTION_HD size_t size() const
typename DualViewType::t_dev DeviceViewType
indexContainer(IndexType begin, IndexType end)
INLINE_FUNCTION_HD IndexType operator()(int32 i) const
indexContainer & operator=(const indexContainer &)=default
INLINE_FUNCTION_HD IndexType min() const
INLINE_FUNCTION_HD IndexType operator()(selectSide< executionSpace >, int32 i) const
const HostViewType & hostView() const
IndexAccessor(ViewType v)
T max(const Vector< T, Allocator > &v)
typename DualViewType::t_host HostViewType
#define INLINE_FUNCTION_HD
T min(const Vector< T, Allocator > &v)
Kokkos::DualView< int32 * > DualViewType
const DeviceViewType & deviceView() const