|
OpenQMC API
|

Go to the source code of this file.
Classes | |
| struct | oqmc::State64Bit |
| Generic sampler state type. More... | |
Functions | |
| constexpr int | oqmc::computeIndexKey (int index) |
| Compute 16-bit key from index. | |
| constexpr int | oqmc::computeIndexId (int index) |
| Compute new 16-bit index from index. | |
Sampler state implementation.
|
constexpr |
Given a sample index, compute a key value based on the top 16-bits of the integer range. Use computeIndexId() to compute the corrosponding new index to pair with the key.
| [in] | index | Sample index. |

|
constexpr |
Given a sample index, compute a new index value based on the bottom 16-bits of the integer range. Use computeIndexKey() to compute the corrosponding key value to pair with the new index.
| [in] | index | Sample index. |
