OpenQMC API
Loading...
Searching...
No Matches
range.h File Reference
#include "gpu.h"
#include <cassert>
#include <cstdint>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  oqmc
 

Functions

constexpr std::uint32_t oqmc::uintToRange (std::uint32_t value, std::uint32_t range)
 Compute an unsigned integer within 0-bounded half-open range.
 
constexpr std::uint32_t oqmc::uintToRange (std::uint32_t value, std::uint32_t begin, std::uint32_t end)
 Compute an unsigned integer within half-open range.
 

Detailed Description

Functionality for remapping integer values to within a bounded range while retaining quality properties of random numbers at low cost.