Template Struct XoshiroState
Defined in File xoshiro_simd.hpp
Struct Documentation
-
template<class Arch>
struct XoshiroState SIMD state for the vectorized Xoshiro256++ generator. Contains the 4 SIMD register state and all PRNG operations.
- Template Parameters:
Arch – The xsimd architecture type.
Public Functions
-
inline constexpr void seed(result_type seed_val, result_type thread_id = 0, result_type cluster_id = 0) noexcept
Seed the SIMD state from a scalar seed, with optional thread and cluster offsets.
-
inline constexpr void populate_cache(std::array<result_type, CACHE_SIZE> &cache) noexcept
-
inline constexpr void long_jump() noexcept
Long-jump function. Equivalent to 2^192 calls to next().
-
inline constexpr std::array<result_type, RNG_WIDTH> getState(const std::size_t index) const noexcept
-
inline void get_flat_state(result_type *out) const noexcept
-
inline void set_flat_state(const result_type *in) noexcept