Go to the documentation of this file.
18 #ifndef viskores_worklet_ScatterPermutation_h
19 #define viskores_worklet_ScatterPermutation_h
39 template <
typename PermutationStorage = VISKORES_DEFAULT_STORAGE_TAG>
55 template <
typename RangeType>
61 template <
typename RangeType>
78 return this->
GetVisitArray(inputRange[0] * inputRange[1] * inputRange[2]);
87 #endif // viskores_worklet_ScatterPermutation_h
PermutationArrayHandle Permutation
Definition: ScatterPermutation.h:82
VisitArrayType GetVisitArray(viskores::Id inputRange) const
Definition: ScatterPermutation.h:70
Manages an array-worth of data.
Definition: ArrayHandle.h:313
A scatter that maps input to output based on a permutation array.
Definition: ScatterPermutation.h:40
viskores::Id GetOutputRange(RangeType) const
Definition: ScatterPermutation.h:56
viskores::cont::ArrayHandleConstant< viskores::IdComponent > VisitArrayType
Definition: ScatterPermutation.h:47
OutputToInputMapType GetOutputToInputMap(RangeType) const
Definition: ScatterPermutation.h:62
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::cont::ArrayHandle< viskores::Id, PermutationStorage > PermutationArrayHandle
Definition: ScatterPermutation.h:43
An array handle with a constant value.
Definition: ArrayHandleConstant.h:78
viskores::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:482
VisitArrayType GetVisitArray(viskores::Id3 inputRange) const
Definition: ScatterPermutation.h:76
OutputToInputMapType GetOutputToInputMap() const
Definition: ScatterPermutation.h:67
ScatterPermutation(const PermutationArrayHandle &permutation)
Definition: ScatterPermutation.h:49