Go to the documentation of this file.
21 #ifndef __scatteredFieldAccess_hpp__
22 #define __scatteredFieldAccess_hpp__
31 template<
typename T,
typename MemorySpace=
void>
156 if(
empty())
return val;
175 #endif //__scatteredFieldAccess_hpp__
~scatteredFieldAccess()=default
typename viewType::device_type device_type
const INLINE_FUNCTION_HD viewType & field() const
const INLINE_FUNCTION_HD T & operator[](uint32 i) const
INLINE_FUNCTION_HD uint32 size() const
scatteredFieldAccess & operator=(const scatteredFieldAccess &)=default
const auto & indices() const
INLINE_FUNCTION_H void getNth(Type &dst, const ViewType1D< Type, sProperties... > &src, const uint32 n)
scatteredFieldAccess< T, typename DefaultExecutionSpace::memory_space > deviceScatteredFieldAccess
ViewType1D< uint32, memory_space > indices_
INLINE_FUNCTION_HD T & operator()(uint32 i)
typename viewType::memory_space memory_space
Kokkos::View< T *, properties... > ViewType1D
1D veiw as a vector
INLINE_FUNCTION_HD uint32 index(uint32 i) const
typename viewType::execution_space execution_space
INLINE_FUNCTION_HD viewType & field()
const INLINE_FUNCTION_HD T & operator()(uint32 i) const
scatteredFieldAccess(uint32 sz, const ViewType1D< uint32, memory_space > &ind, const ViewType1D< T, memory_space > &fVals)
ViewType1D< T, MemorySpace > viewType
INLINE_FUNCTION_HD bool empty() const
INLINE_FUNCTION_HD T & operator[](uint32 i)
#define INLINE_FUNCTION_HD