Go to the documentation of this file.
57 #ifndef vtkm_worklet_contourtree_degree_delta_h
58 #define vtkm_worklet_contourtree_degree_delta_h
74 WholeArrayIn sortVector,
75 WholeArrayOut candidate);
88 template <
typename InFieldPortalType,
typename OutFieldPortalType>
90 const InFieldPortalType& sortVector,
91 const OutFieldPortalType& candidate)
const
93 vtkm::Id iCandidate = sortVector.Get(sortID);
97 candidate.Set(iCandidate, (
nCandidates - candidate.Get(iCandidate)));
102 vtkm::Id nextCandidate = sortVector.Get(sortID + 1);
103 if (iCandidate != nextCandidate)
105 candidate.Set(iCandidate, (sortID + 1 - candidate.Get(iCandidate)));
VTKM_EXEC void operator()(const vtkm::Id &sortID, const InFieldPortalType &sortVector, const OutFieldPortalType &candidate) const
Definition: DegreeDelta.h:89
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
void(FieldIn sortID, WholeArrayIn sortVector, WholeArrayOut candidate) ControlSignature
Definition: DegreeDelta.h:75
Definition: DegreeDelta.h:70
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void(_1, _2, _3) ExecutionSignature
Definition: DegreeDelta.h:76
_1 InputDomain
Definition: DegreeDelta.h:77
A control signature tag for input fields.
Definition: WorkletMapField.h:49
vtkm::Id nCandidates
Definition: DegreeDelta.h:79
VTKM_EXEC_CONT DegreeDelta(vtkm::Id NCandidates)
Definition: DegreeDelta.h:83
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38