OpenQMC API
Loading...
Searching...
No Matches
lookup.h File Reference
#include "gpu.h"
#include "permute.h"
#include "rotate.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::randomDigitScramble (std::uint32_t value, std::uint32_t hash)
 Random digit scramble an element in a sequence.
 
template<int Table, int Depth>
void oqmc::shuffledScrambledLookup (std::uint32_t index, std::uint32_t hash, const std::uint32_t table[][Table], std::uint32_t sample[Depth])
 Compute a randomised value from a pre-computed table.
 

Detailed Description

Table lookup functionality. This can be paired with various pre-initialised sample sequence methods to randomise a sequence lookup. As a result a single initialised table can be reused to save on initialisation and storage costs.