skip_ahead#
Description#
The skip_ahead function advances the state of the given engine as if it had generated 32 random bits a specified number of times.
The skip_ahead function supports the following interfaces to apply the skip-ahead method:
Common interface
Interface with a partitioned number of skipped elements
API#
Syntax#
Common Interface
namespace oneapi::mkl::rng::device {
template<typename Engine>
void skip_ahead (Engine& engine, std::uint64_t num_to_skip)
}
Interface with a partitioned number of skipped elements
namespace oneapi::mkl::rng::device {
template<typename Engine>
void skip_ahead (Engine& engine, std::initializer_list<std::uint64_t> num_to_skip)
}
Include Files#
oneapi/mkl/rng/device.hpp
Template Parameters#
Common Interface
Name |
Type |
Description |
|---|---|---|
|
|
Object of |
|
|
Number of skipped elements. |
Interface with a Partitioned Number of Skipped Elements
Name |
Type |
Description |
|---|---|---|
|
|
Object of |
|
|
Partitioned number of skipped elements. |