![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Scalar Box-Muller transform for floating-point types. More...
#include <NormalReal.hpp>
Public Types | |
| using | result_type = T_Fp |
Public Member Functions | |
| template<concepts::UniformStdEngine T_Rng> | |
| constexpr T_Fp | operator() (T_Rng &rng) |
Private Attributes | |
| bool | m_hasSecondRngNumber = false |
| T_Fp | m_secondRngNumber |
Scalar Box-Muller transform for floating-point types.
Generates independent standard normal samples from a uniform scalar engine. The implementation caches the second sample so that a pair of uniforms yields two normal values.
Ref.: G. E. P. Box and M. E. Muller, "A Note on the Generation of Random Normal Deviates,"
Definition at line 26 of file NormalReal.hpp.
| using alpaka::rand::distribution::internal::BoxMuller< T_Fp >::result_type = T_Fp |
Definition at line 28 of file NormalReal.hpp.
|
inlineconstexpr |
Definition at line 31 of file NormalReal.hpp.
|
private |
Definition at line 58 of file NormalReal.hpp.
|
private |
Definition at line 57 of file NormalReal.hpp.