Go to the documentation of this file.
10 #ifndef vtk_m_count_ArrayHandleRandomUniformReal_h
11 #define vtk_m_count_ArrayHandleRandomUniformReal_h
23 template <
typename Real>
24 struct CanonicalFunctor;
34 static constexpr vtkm::UInt64 MASK = (vtkm::UInt64{ 1 } << 53) - vtkm::UInt64{ 1 };
37 vtkm::Float64 operator()(vtkm::UInt64 bits)
const {
return (bits & MASK) / DIVISOR; }
49 vtkm::Float32 operator()(vtkm::UInt64 bits)
const {
return (bits & MASK) / DIVISOR; }
53 template <
typename Real = vtkm::Float64>
56 detail::CanonicalFunctor<Real>>
65 detail::CanonicalFunctor<Real>>));
69 detail::CanonicalFunctor<Real>{})
76 #endif //vtk_m_count_ArrayHandleRandomUniformReal_h
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_ARRAY_HANDLE_SUBCLASS(classname, fullclasstype, superclass)
Macro to make default methods in ArrayHandle subclasses.
Definition: ArrayHandle.h:226
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
A short fixed-length array.
Definition: Types.h:767
uint32_t UInt32
Definition: Types.h:161
float Float32
Definition: Types.h:154
double Float64
Definition: Types.h:155
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:92