Visible to Intel only — GUID: GUID-E7B8EE0B-5F2E-40B3-8CAF-75C3DEFEAA43
Visible to Intel only — GUID: GUID-E7B8EE0B-5F2E-40B3-8CAF-75C3DEFEAA43
generate_single
Entry point to obtain a single random number from a given vector engine with proper statistics of a given distribution.
API
Syntax
namespace oneapi::mkl::rng::device {
template<typename Distr, typename Engine>
typename Distr::result_type generate_single(Distr& distr, Engine& engine)
}
Include Files
oneapi/mkl/rng/device.hpp
Input Parameters
Name |
Type |
Description |
---|---|---|
distr |
Distr& |
Distribution object. See Device Distributions for details. |
engine |
Engine& |
Engine object. See Device Engines (Basic Random Number Generators) for details. |
Output Parameters
Name |
Type |
Description |
---|---|---|
result |
typename Distr::result_type |
Function returns a scalar random number, may be used for engines with vec_size > 1. |