![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Random number generation using Philox. More...
#include <utils/Vector.hpp>#include <utils/u32_to_u64.hpp>#include <utils/uniform.hpp>#include <Random123/philox.h>#include <cstddef>#include <numbers>#include <random>#include <ranges>#include <vector>
Include dependency graph for random.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | Random |
Enumerations | |
| enum class | RNGSalt : uint32_t { FLUID = 0 , PARTICLES , LANGEVIN , LANGEVIN_ROT , BROWNIAN_WALK , BROWNIAN_INC , BROWNIAN_ROT_INC , BROWNIAN_ROT_WALK , NPTISO_PARTICLE , NPTISO_VOLUME , SALT_DPD , THERMALIZED_BOND , THERMAL_STONER_WOHLFARTH } |
Functions | |
| template<RNGSalt salt> | |
| auto | Random::philox_4_uint64s (uint64_t counter, uint32_t seed, int key1, int key2=0) |
| get 4 random uint 64 from the Philox RNG | |
| template<RNGSalt salt, std::size_t N = 3> requires ((N >= 1) and (N <= 4)) | |
| auto | Random::noise_uniform (uint64_t counter, uint32_t seed, int key1, int key2=0) |
| Generator for random uniform noise. | |
| template<RNGSalt salt, std::size_t N = 3> requires ((N >= 1) and (N <= 4)) | |
| auto | Random::noise_gaussian (uint64_t counter, uint32_t seed, int key1, int key2=0) |
| Generator for Gaussian noise. | |
| template<typename T > | |
| std::mt19937 | Random::mt19937 (T &&seed) |
| Mersenne Twister with warmup. | |
Random number generation using Philox.
Definition in file random.hpp.
|
strong |
| Enumerator | |
|---|---|
| FLUID | |
| PARTICLES | |
| LANGEVIN | |
| LANGEVIN_ROT | |
| BROWNIAN_WALK | |
| BROWNIAN_INC | |
| BROWNIAN_ROT_INC | |
| BROWNIAN_ROT_WALK | |
| NPTISO_PARTICLE | |
| NPTISO_VOLUME | |
| SALT_DPD | |
| THERMALIZED_BOND | |
| THERMAL_STONER_WOHLFARTH | |
Definition at line 48 of file random.hpp.