Go to the documentation of this file.
22 #ifndef __sortedPairs_hpp__
23 #define __sortedPairs_hpp__
32 template<
typename executionSpace,
typename idType>
96 Kokkos::Schedule<Kokkos::Static>,
97 Kokkos::IndexType<int32>,
102 Kokkos::Schedule<Kokkos::Static>,
103 Kokkos::IndexType<int32>,
200 Kokkos::parallel_for(
201 "contactPairsSorted::fillFlag",
215 if(
size_ == 0 )
return;
225 Kokkos::parallel_for(
226 "contactPairsSorted::fillPairs",
258 #endif //__sortedPairs_hpp__
typename UnsortedPairs::IdType IdType
ViewType1D< PairType, ExecutionSpace > sortedPairs_
INLINE_FUNCTION_HD void operator()(TagFillPairs, int32 i) const
INLINE_FUNCTION_HD int32 size() const
kPair< idType, idType > PairType
INLINE_FUNCTION_HD int32 capacity() const
INLINE_FUNCTION_HD void operator()(TagFillFlag, int32 i) const
ViewType1D< int32, ExecutionSpace > flags_
typename UnsortedPairs::PairType PairType
Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< int32 >, TagFillPairs > rpFillPairs
INLINE_FUNCTION_H void reallocNoInit(ViewType1D< Type, Properties... > &view, int32 len)
int32 size_
size of pair list
INLINE_FUNCTION_HD bool getPair(int32 idx, PairType &p) const
INLINE_FUNCTION_H void clear()
typename ExecutionSpace::memory_space memory_space
sortedPairs(int32 initialSize=1)
#define INLINE_FUNCTION_H
INLINE_FUNCTION_H int32 size() const
INLINE_FUNCTION_H void clear()
ViewType1D< PairType, ExecutionSpace > sortedParis_
INLINE_FUNCTION_HD int32 loopCount() const
unorderedSet< PairType, ExecutionSpace > ContainerType
INLINE_FUNCTION_HD PairType getPair(int i) const
INLINE_FUNCTION_H void getNth(dType &dst, const ViewType1D< sType, sProperties... > &src, const int32 n)
typename UnsortedPairs::ContainerType ContainerType
INLINE_FUNCTION_HD PairType getPair(int32 idx) const
INLINE_FUNCTION_HD bool isValid(int32 i) const
void sort(Vector< T, Allocator > &vec)
pairAccessor getPairs() const
INLINE_FUNCTION_HD bool isValid(int32 idx) const
Kokkos::View< T *, properties... > ViewType1D
Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< int32 >, TagFillFlag > rpFillFlag
typename sortedPairs::PairType PairType
#define INLINE_FUNCTION_HD
void exclusiveScan(const ViewType1D< Type, properties... > &view, int32 start, int32 end, ViewType1D< dType, dProperties... > &dView, int32 dStart, typename std::enable_if_t< areAccessible< typename ViewType1D< Type, properties... >::execution_space, typename ViewType1D< dType, dProperties... >::memory_space >(), bool >=true)
executionSpace ExecutionSpace
typename UnsortedPairs::ExecutionSpace ExecutionSpace
INLINE_FUNCTION_HD bool getPair(int32 i, PairType &pair) const
TypeInfoNV("sortedPairs")