Viskores  1.0
ArrayRangeCompute.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_ArrayRangeCompute_h
19 #define viskores_cont_ArrayRangeCompute_h
20 
21 #include <viskores/Range.h>
22 
26 
27 namespace viskores
28 {
29 namespace cont
30 {
31 
72 
75  bool computeFiniteRange = false,
77 
81  bool computeFiniteRange = false,
83 
87 {
88  return ArrayRangeCompute(array, false, device);
89 }
90 
92 
130 VISKORES_CONT_EXPORT viskores::Range ArrayRangeComputeMagnitude(
132  bool computeFiniteRange = false,
134 
135 VISKORES_CONT_EXPORT viskores::Range ArrayRangeComputeMagnitude(
138  bool computeFiniteRange = false,
140 
143 {
144  return ArrayRangeComputeMagnitude(array, false, device);
145 }
146 
148 
149 namespace internal
150 {
151 
152 VISKORES_CONT_EXPORT void ThrowArrayRangeComputeFailed();
153 
154 } // namespace internal
155 
156 VISKORES_DEPRECATED(2.1, "Moved to viskores::cont::internal.")
158 {
160 }
161 
162 }
163 } // namespace viskores::cont
164 
165 #endif //viskores_cont_ArrayRangeCompute_h
viskores::cont::ArrayRangeComputeMagnitude
viskores::Range ArrayRangeComputeMagnitude(const viskores::cont::UnknownArrayHandle &array, bool computeFiniteRange=false, viskores::cont::DeviceAdapterId device=viskores::cont::DeviceAdapterTagAny{})
Compute the range of the magnitude of the Vec data in an array handle.
ArrayHandle.h
DeviceAdapterTag.h
viskores::cont::ArrayHandle< viskores::Range >
viskores::cont::DeviceAdapterTagAny
Tag for a device adapter used to specify that any device may be used for an operation.
Definition: DeviceAdapterTag.h:194
viskores::cont::ThrowArrayRangeComputeFailed
void ThrowArrayRangeComputeFailed()
Definition: ArrayRangeCompute.h:157
UnknownArrayHandle.h
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
VISKORES_DEPRECATED
#define VISKORES_DEPRECATED(...)
Definition: Deprecated.h:156
Range.h
viskores::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
viskores::Range
Represent a continuous scalar range of values.
Definition: Range.h:39
viskores::cont::UnknownArrayHandle
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:451
viskores::cont::ArrayRangeCompute
viskores::cont::ArrayHandle< viskores::Range > ArrayRangeCompute(const viskores::cont::UnknownArrayHandle &array, bool computeFiniteRange=false, viskores::cont::DeviceAdapterId device=viskores::cont::DeviceAdapterTagAny{})
Compute the range of the data in an array handle.