VTK-m
2.0
|
A scatter that maps input to output based on a permutation array. More...
#include <ScatterPermutation.h>
Public Types | |
using | OutputToInputMapType = PermutationArrayHandle |
using | VisitArrayType = vtkm::cont::ArrayHandleConstant< vtkm::IdComponent > |
Public Member Functions | |
ScatterPermutation (const PermutationArrayHandle &permutation) | |
template<typename RangeType > | |
VTKM_CONT vtkm::Id | GetOutputRange (RangeType) const |
template<typename RangeType > | |
VTKM_CONT OutputToInputMapType | GetOutputToInputMap (RangeType) const |
VTKM_CONT OutputToInputMapType | GetOutputToInputMap () const |
VTKM_CONT VisitArrayType | GetVisitArray (vtkm::Id inputRange) const |
VTKM_CONT VisitArrayType | GetVisitArray (vtkm::Id3 inputRange) const |
Private Types | |
using | PermutationArrayHandle = vtkm::cont::ArrayHandle< vtkm::Id, PermutationStorage > |
Private Attributes | |
PermutationArrayHandle | Permutation |
A scatter that maps input to output based on a permutation array.
The Scatter
classes are responsible for defining how much output is generated based on some sized input. ScatterPermutation
is similar to ScatterCounting
but can have lesser memory usage for some cases. The constructor takes an array of ids, where each entry maps the corresponding output to an input. The ids can be in any order and there can be duplicates. Note that even with duplicates the VistIndex is always 0.
using vtkm::worklet::ScatterPermutation< PermutationStorage >::OutputToInputMapType = PermutationArrayHandle |
|
private |
using vtkm::worklet::ScatterPermutation< PermutationStorage >::VisitArrayType = vtkm::cont::ArrayHandleConstant<vtkm::IdComponent> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |