Go to the documentation of this file.
10 #ifndef vtk_m_cont_internal_ConvertNumComponentsToOffsetsTemplate_h
11 #define vtk_m_cont_internal_ConvertNumComponentsToOffsetsTemplate_h
31 template <
typename NumComponentsArrayType,
typename OffsetsStorage>
32 VTKM_CONT void ConvertNumComponentsToOffsetsTemplate(
33 const NumComponentsArrayType& numComponentsArray,
49 template <
typename NumComponentsArrayType,
typename OffsetsStorage>
50 VTKM_CONT void ConvertNumComponentsToOffsetsTemplate(
51 const NumComponentsArrayType& numComponentsArray,
60 device, vtkm::cont::make_ArrayHandleCast<vtkm::Id>(numComponentsArray), offsetsArray);
63 template <
typename NumComponentsArrayType>
65 const NumComponentsArrayType& numComponentsArray,
72 vtkm::cont::internal::ConvertNumComponentsToOffsetsTemplate(
73 numComponentsArray, offsetsArray, componentsArraySize, device);
77 template <
typename NumComponentsArrayType>
79 const NumComponentsArrayType& numComponentsArray,
85 vtkm::cont::internal::ConvertNumComponentsToOffsetsTemplate(
86 numComponentsArray, offsetsArray, device);
97 #endif // vtk_m_cont_internal_ConvertNumComponentsToOffsetsTemplate_h
Manages an array-worth of data.
Definition: ArrayHandle.h:300
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:468
#define VTKM_IS_ARRAY_HANDLE(T)
Checks that the given type is a vtkm::cont::ArrayHandle.
Definition: ArrayHandle.h:137
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
#define VTKM_LOG_SCOPE_FUNCTION(level)
Definition: Logging.h:214
Tag for a device adapter used to specify that any device may be used for an operation.
Definition: DeviceAdapterTag.h:180
An object used to specify a device.
Definition: DeviceAdapterTag.h:58
VTK-m Control Environment.
Definition: Algorithm.h:25
static void ScanExtended(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< T, COut > &output)
Definition: Algorithm.h:902
@ Perf
General timing data and algorithm flow information, such as filter execution, worklet dispatches,...
T ArrayGetValue(vtkm::Id id, const vtkm::cont::ArrayHandle< T, S > &data)
Obtain a small set of values from an ArrayHandle with minimal device transfers.
Definition: ArrayGetValues.h:261