Go to the documentation of this file.
18 #ifndef viskores_count_ArrayHandleRandomStandardNormal_h
19 #define viskores_count_ArrayHandleRandomStandardNormal_h
68 template <
typename Real = viskores::Float64>
71 viskores::cont::ArrayHandleZip<viskores::cont::ArrayHandleRandomUniformReal<Real>,
72 viskores::cont::ArrayHandleRandomUniformReal<Real>>,
95 SeedType seed = { std::random_device{}() })
97 UniformReal{ length, { ~seed[0] } }),
104 #endif // viskores_count_ArrayHandleRandomStandardNormal_h
viskores::cont::ArrayHandleZip< FirstHandleType, SecondHandleType > make_ArrayHandleZip(const FirstHandleType &first, const SecondHandleType &second)
A convenience function for creating an ArrayHandleZip.
Definition: ArrayHandleZip.h:300
#define VISKORES_EXEC_CONT
Definition: ExportMacros.h:60
ArrayHandleZip is a specialization of ArrayHandle.
Definition: ArrayHandleZip.h:263
viskores::Float32 Sqrt(viskores::Float32 x)
Definition: Math.h:951
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
An ArrayHandle that provides a source of random numbers with a standard normal distribution.
Definition: ArrayHandleRandomStandardNormal.h:69
Groups connected points that have the same field value.
Definition: Atomic.h:27
FirstType first
The pair's first object.
Definition: Pair.h:58
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:165
A viskores::Pair is essentially the same as an STL pair object except that the methods (constructors ...
Definition: Pair.h:37
viskores::Float32 Cos(viskores::Float32 x)
Definition: Math.h:235
viskores::Float32 Log(viskores::Float32 x)
Definition: Math.h:1464
#define VISKORES_ARRAY_HANDLE_SUBCLASS(classname, fullclasstype, superclass)
Macro to make default methods in ArrayHandle subclasses.
Definition: ArrayHandle.h:256
SecondType second
The pair's second object.
Definition: Pair.h:63
ArrayHandleRandomStandardNormal(viskores::Id length, SeedType seed={ std::random_device{}() })
Construct an ArrayHandleRandomStandardNormal.
Definition: ArrayHandleRandomStandardNormal.h:94
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:169
A short fixed-length array.
Definition: Types.h:365