Struct probability::source::Xorshift128Plus
source · pub struct Xorshift128Plus(_, _);
Expand description
An instance of the Xorshift128+ algorithm.
References
-
Sebastiano Vigna, “Further Scramblings of Marsaglia’s Xorshift Generators,” CoRR, 2014.
-
https://en.wikipedia.org/wiki/Xorshift#xorshift.2B
Implementations
sourceimpl Xorshift128Plus
impl Xorshift128Plus
sourcepub fn new(seed: [u64; 2]) -> Xorshift128Plus
pub fn new(seed: [u64; 2]) -> Xorshift128Plus
Create an instance of the algorithm.
At least one bit of the seed should be one.
Trait Implementations
sourceimpl Clone for Xorshift128Plus
impl Clone for Xorshift128Plus
sourcefn clone(&self) -> Xorshift128Plus
fn clone(&self) -> Xorshift128Plus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Source for Xorshift128Plus
impl Source for Xorshift128Plus
impl Copy for Xorshift128Plus
Auto Trait Implementations
impl RefUnwindSafe for Xorshift128Plus
impl Send for Xorshift128Plus
impl Sync for Xorshift128Plus
impl Unpin for Xorshift128Plus
impl UnwindSafe for Xorshift128Plus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more