58 constexpr int lattice[4] = {
85 static_assert(
Depth >= 1,
"Pattern depth is greater or equal to one.");
86 static_assert(
Depth <= 4,
"Pattern depth is less or equal to four.");
#define OQMC_HOST_DEVICE
Definition gpu.h:13
constexpr std::uint32_t output(std::uint32_t state)
Output permutation function.
Definition pcg.h:96
constexpr std::uint32_t rng(std::uint32_t &state)
Compute a random number from the PRNG sequence.
Definition pcg.h:162
constexpr std::uint32_t reverseAndShuffle(std::uint32_t value, std::uint32_t seed)
Reverse input bits and shuffle order.
Definition permute.h:54
EncodeKey decodeBits16(std::uint16_t value)
Decode a value back into a key.
Definition encode.h:81
constexpr void shuffledRotatedLattice(std::uint32_t index, std::uint32_t patternId, std::uint32_t sample[Depth])
Compute a randomised rank 1 lattice value.
Definition rank1.h:82
constexpr std::uint32_t rotate(std::uint32_t value, std::uint32_t distance)
Rotate an integer a given distance.
Definition rank1.h:33
constexpr std::uint32_t latticeReversedIndex(std::uint32_t index, int dimension)
Compute a rank 1 lattice value at an index with reversed bits.
Definition rank1.h:49