MCKL
Monte Carlo Kernel Library
Namespaces | Typedefs | Functions
u01.hpp File Reference
#include <mckl/random/internal/common.hpp>
#include <mckl/random/internal/u01_generic.hpp>
#include <mckl/random/internal/u01_avx2.hpp>

Go to the source code of this file.

Namespaces

 mckl
 
 mckl::internal
 

Typedefs

template<typename UIntType , typename RealType , int M>
using mckl::internal::U01CanonicalImpl = U01CanonicalAVX2Impl< UIntType, RealType, M >
 
template<typename UIntType , typename RealType , typename Lower , typename Upper >
using mckl::internal::U01Impl = U01AVX2Impl< UIntType, RealType, Lower, Upper >
 

Functions

template<typename UIntType , typename RealType , typename Lower , typename Upper >
RealType mckl::u01 (UIntType u)
 Convert uniform unsigned integers to floating points within [0, 1]. More...
 
template<typename UIntType , typename RealType , typename Lower , typename Upper >
void mckl::u01 (std::size_t n, const UIntType *u, RealType *r)
 Convert uniform unsigned integers to floating points within [0, 1]. More...
 
template<typename UIntType , typename RealType , std::size_t M>
RealType mckl::u01_canonical (const UIntType *u)
 Convert uniform multiple unsigned integers to one floating points within [0, 1]. More...
 
template<typename UIntType , typename RealType , std::size_t M>
void mckl::u01_canonical (std::size_t n, const UIntType *u, RealType *r)
 Convert uniform multiple unsigned integers to one floating points within [0, 1]. More...
 
template<typename UIntType , typename RealType >
RealType mckl::u01_cc (UIntType u)
 Convert uniform unsigned integers to floating points on [0, 1]. More...
 
template<typename UIntType , typename RealType >
void mckl::u01_cc (std::size_t n, const UIntType *u, RealType *r)
 Convert uniform unsigned integers to floating points on [0, 1]. More...
 
template<typename UIntType , typename RealType >
RealType mckl::u01_co (UIntType u)
 Convert uniform unsigned integers to floating points on [0, 1) More...
 
template<typename UIntType , typename RealType >
void mckl::u01_co (std::size_t n, const UIntType *u, RealType *r)
 Convert uniform unsigned integers to floating points on [0, 1) More...
 
template<typename UIntType , typename RealType >
RealType mckl::u01_oc (UIntType u)
 Convert uniform unsigned integers to floating points on (0, 1]. More...
 
template<typename UIntType , typename RealType >
void mckl::u01_oc (std::size_t n, const UIntType *u, RealType *r)
 Convert uniform unsigned integers to floating points on (0, 1]. More...
 
template<typename UIntType , typename RealType >
RealType mckl::u01_oo (UIntType u)
 Convert uniform unsigned integers to floating points on (0, 1) More...
 
template<typename UIntType , typename RealType >
void mckl::u01_oo (std::size_t n, const UIntType *u, RealType *r)
 Convert uniform unsigned integers to floating points on (0, 1) More...