Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::GenerateCanonical< Generator, RealType > Class Template Reference

Generate random numbers in [0, 1). More...

#include <GenerateCanonical.hh>

Public Types

Type aliases
using real_type = RealType
 
using result_type = real_type
 

Public Member Functions

result_type operator() (Generator &rng)
 Generate random numbers in [0, 1). More...
 

Detailed Description

template<class Generator, class RealType = ::celeritas::real_type>
class celeritas::GenerateCanonical< Generator, RealType >

Generate random numbers in [0, 1).

This is essentially an implementation detail; partial specialization can be used to sample using special functions with a given generator.

Member Function Documentation

◆ operator()()

template<class Generator , class RealType >
auto celeritas::GenerateCanonical< Generator, RealType >::operator() ( Generator &  rng)

Generate random numbers in [0, 1).

This is the default implementation, for CPU-only code.


The documentation for this class was generated from the following file: