Skip to main content

bernoulli_packed_simd

Function bernoulli_packed_simd 

Source
pub fn bernoulli_packed_simd<R: Rng + ?Sized>(
    prob: f64,
    length: usize,
    rng: &mut R,
) -> Vec<u64>
Expand description

SIMD-accelerated packed Bernoulli generation.

Semantics match bernoulli_packed_fast (byte-threshold sampling) while vectorizing the threshold comparison for full 64-bit words.