Go to the documentation of this file.
54 #ifndef vtk_m_worklet_contourtree_augmented_array_transforms_h
55 #define vtk_m_worklet_contourtree_augmented_array_transforms_h
72 namespace contourtree_augmented
77 template <
typename ValueType,
typename ArrayType>
80 using transform_type =
86 vtkm::Id outNumValues = output.GetNumberOfValues();
87 if (permNumValues > outNumValues)
89 output.Allocate(permNumValues);
91 else if (permNumValues < outNumValues)
103 transform_type maskedPermuteIndex =
107 permute_type permutedInput(maskedPermuteIndex, input);
Definition: ArrayTransforms.h:144
VTKM_CONT void ArrayCopyDevice(const vtkm::cont::ArrayHandle< InValueType, InStorage > &source, vtkm::cont::ArrayHandle< OutValueType, OutStorage > &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopyDevice.h:75
VTKM_CONT vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:448
VTKM_EXEC_CONT OneIfCritical()
Definition: ArrayTransforms.h:127
VTKM_EXEC_CONT bool IsHypernode(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:115
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
Definition: ArrayTransforms.h:114
void PermuteArray(const ArrayType &input, IdArrayType &permute, ArrayType &output)
Definition: ArrayTransforms.h:78
VTKM_EXEC_CONT MarkOther()
Definition: ArrayTransforms.h:117
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT vtkm::Id operator()(vtkm::Id x) const
Definition: ArrayTransforms.h:140
VTKM_CONT vtkm::cont::ArrayHandleTransform< HandleType, FunctorType > make_ArrayHandleTransform(HandleType handle, FunctorType functor)
make_ArrayHandleTransform is convenience function to generate an ArrayHandleTransform.
Definition: ArrayHandleTransform.h:474
Implicitly permutes the values in an array.
Definition: ArrayHandlePermutation.h:227
constexpr vtkm::Id CV_OTHER_FLAG
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:79
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:208
VTKM_EXEC_CONT OneIfHypernode()
Definition: ArrayTransforms.h:147
VTKM_EXEC_CONT vtkm::Id operator()(vtkm::Id idx) const
Definition: ArrayTransforms.h:120
Definition: ArrayTransforms.h:134
VTKM_EXEC_CONT vtkm::Id operator()(vtkm::Id x) const
Definition: ArrayTransforms.h:130
VTKM_EXEC_CONT bool IsSupernode(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:109
Definition: ArrayTransforms.h:124
VTKM_EXEC_CONT OneIfSupernode()
Definition: ArrayTransforms.h:137
VTKM_EXEC_CONT vtkm::Id operator()(vtkm::Id x) const
Definition: ArrayTransforms.h:150