alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
UniformReal.hpp File Reference

Go to the source code of this file.

Classes

struct  alpaka::rand::distribution::internal::BitLengthConformityAdapter< T_Engine, byteLengthEngineResult, byteLengthRealType >
 Adapt the bit length of the engine output to match the target type. More...
struct  alpaka::rand::distribution::internal::BitLengthConformityAdapter< T_Engine, 4u, 8u >
 Adapts a 32-bit engine output to a 64-bit value. More...
struct  alpaka::rand::distribution::internal::BitLengthConformityAdapter< T_Engine, 8u, 4u >
 Adapt a 64-bit engine output to a 32-bit value. More...
struct  alpaka::rand::distribution::internal::Constants< T_Integer, T_Floating >
 Contains some (constexpr-)constants for random bit integer to floating point conversion – which improve readability. More...
struct  alpaka::rand::distribution::internal::IntervalAwareConversion< T_Engine, interval::CC, T_Integer, T_Floating >
 Converts an integer RNG output to a floating point type in the closed interval [0, 1]. More...
struct  alpaka::rand::distribution::internal::IntervalAwareConversion< T_Engine, interval::CO, T_Integer, T_Floating >
 Converts an integer RNG output to a floating-point type in the interval [0, 1). More...
struct  alpaka::rand::distribution::internal::IntervalAwareConversion< T_Engine, interval::OC, T_Integer, T_Floating >
 Convert an integer RNG output to a floating-point type in the interval (0, 1]. More...
struct  alpaka::rand::distribution::internal::IntervalAwareConversion< T_Engine, interval::OO, T_Integer, T_Floating >
 Convert an integer RNG output to a floating-point type in the interval (0, 1). More...
class  alpaka::rand::distribution::internal::UniformRealBase< T_Floating, T_Interval >
struct  alpaka::rand::distribution::internal::vectorDispatchWrapper< T_Engine, 4u, TElemSize, TElems >
struct  alpaka::rand::distribution::internal::vectorDispatchWrapper< T_Engine, 8u, 4u, TElems >
 Wrapper specialization enabling efficient generation of 64-bit values from vectorized engines without requiring two engine calls. More...
struct  alpaka::rand::distribution::UniformReal< T_Result, T_Interval >
 Select a floating-point value from a uniform interval. More...

Namespaces

namespace  alpaka
 main alpaka namespace.
namespace  alpaka::rand
namespace  alpaka::rand::distribution
namespace  alpaka::rand::distribution::internal

Functions

template<concepts::Interval T_Interval, std::floating_point T_Result, typename T_Engine>
constexpr auto alpaka::rand::distribution::internal::getNormalizedUniformReal (T_Engine &engine) -> T_Result
 Generate a floating-point value in the requested interval.
template<std::floating_point T_Floating>
consteval T_Floating alpaka::rand::distribution::internal::prevOne () noexcept
 Returns a constant, which is equivalent to std::nextafter(T_Floating{1}, T_Floating{0}) or more specifically: returns the highest floating-point value lower than one.