Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::UniformBoxDistribution< RealType > Class Template Reference

Sample a point uniformly in a box. More...

#include <UniformBoxDistribution.hh>

Public Types

Type aliases
using real_type = RealType
 
using result_type = Array< real_type, 3 >
 

Public Member Functions

CELER_FUNCTION UniformBoxDistribution (result_type lower, result_type upper)
 Construct from upper and lower coordinates.
 
template<class Generator >
CELER_FUNCTION result_type operator() (Generator &rng)
 
template<class Generator >
CELER_FUNCTION auto operator() (Generator &rng) -> result_type
 Sample uniformly in the box.
 

Detailed Description

template<class RealType = ::celeritas::real_type>
class celeritas::UniformBoxDistribution< RealType >

Sample a point uniformly in a box.


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