forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
Random Number
Duane Labreche edited this page Sep 21, 2018
·
9 revisions
template<class Generator>
struct rand<Generator, gen_data_type>
-
KOKKOS_INLINE_FUNCTION static gen_func_type max(){return type_value}
-
KOKKOS_INLINE_FUNCTION static gen_func_type draw(Generator& gen) {return gen_data_type((gen.rand()&gen_return__value)}
-
KOKKOS_INLINE_FUNCTION static gen_func_type draw(Generator& gen, const gen_data_type& range) {return gen_data_type((gen.rand(range));}
-
KOKKOS_INLINE_FUNCTION static gen_func_type draw(Generator& gen, const gen_data_type& start, const gen_data_type& end) {return gen_data_type(gen.rand(start,end));}
Function specializations for gen_data_type, gen_func_type and type_value gen_data_type: Scalar, char, short, int, uint, long, ulong, long long, ulong long, float, double, complex, complex
Home:
- Introduction
- Machine Model
- Programming Model
- Compiling
- Initialization
- View
- Parallel Dispatch
- Hierarchical Parallelism
- Custom Reductions
- Atomic Operations
- Subviews
- Interoperability
- Kokkos and Virtual Functions
- Initialization and Finalization
- View
- Data Parallelism
- Execution Policies
- Spaces
- Task Parallelism
- Utilities
- STL Compatibility
- Numerics
- Detection Idiom