VTK-m  2.2
ArrayRangeCompute.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_ArrayRangeCompute_h
11 #define vtk_m_cont_ArrayRangeCompute_h
12 
13 #include <vtkm/Range.h>
14 
15 #include <vtkm/cont/ArrayHandle.h>
18 
19 namespace vtkm
20 {
21 namespace cont
22 {
23 
64 
66  const vtkm::cont::UnknownArrayHandle& array,
67  bool computeFiniteRange = false,
69 
71  const vtkm::cont::UnknownArrayHandle& array,
72  const vtkm::cont::ArrayHandle<vtkm::UInt8>& maskArray,
73  bool computeFiniteRange = false,
75 
77  const vtkm::cont::UnknownArrayHandle& array,
79 {
80  return ArrayRangeCompute(array, false, device);
81 }
82 
84 
123  const vtkm::cont::UnknownArrayHandle& array,
124  bool computeFiniteRange = false,
126 
128  const vtkm::cont::UnknownArrayHandle& array,
129  const vtkm::cont::ArrayHandle<vtkm::UInt8>& maskArray,
130  bool computeFiniteRange = false,
132 
135 {
136  return ArrayRangeComputeMagnitude(array, false, device);
137 }
138 
140 
141 namespace internal
142 {
143 
145 
146 } // namespace internal
147 
148 VTKM_DEPRECATED(2.1, "Moved to vtkm::cont::internal.")
150 {
152 }
153 
154 }
155 } // namespace vtkm::cont
156 
157 #endif //vtk_m_cont_ArrayRangeCompute_h
vtkm::cont::ArrayHandle< vtkm::Range >
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
DeviceAdapterTag.h
vtkm::cont::UnknownArrayHandle
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:430
UnknownArrayHandle.h
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
Range.h
vtkm::cont::DeviceAdapterTagAny
Tag for a device adapter used to specify that any device may be used for an operation.
Definition: DeviceAdapterTag.h:180
vtkm::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:58
vtkm::cont::ArrayRangeCompute
vtkm::cont::ArrayHandle< vtkm::Range > ArrayRangeCompute(const vtkm::cont::UnknownArrayHandle &array, bool computeFiniteRange=false, vtkm::cont::DeviceAdapterId device=vtkm::cont::DeviceAdapterTagAny{})
Compute the range of the data in an array handle.
VTKM_DEPRECATED
#define VTKM_DEPRECATED(...)
Definition: Deprecated.h:145
vtkm::cont::ArrayRangeComputeMagnitude
vtkm::Range ArrayRangeComputeMagnitude(const vtkm::cont::UnknownArrayHandle &array, bool computeFiniteRange=false, vtkm::cont::DeviceAdapterId device=vtkm::cont::DeviceAdapterTagAny{})
Compute the range of the magnitude of the Vec data in an array handle.
vtkm::cont::ThrowArrayRangeComputeFailed
void ThrowArrayRangeComputeFailed()
Definition: ArrayRangeCompute.h:149
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31