Struct concrete_core::math::random::UniformLsb [−][src]
pub struct UniformLsb { pub n: usize, }
Expand description
A distribution type representing random sampling for unsigned integer type, where the n
least significant bits are sampled in [0, 2^n[
.
Fields
n: usize
The number of least significant bits that should be set randomly.
Trait Implementations
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
Auto Trait Implementations
impl RefUnwindSafe for UniformLsb
impl Send for UniformLsb
impl Sync for UniformLsb
impl Unpin for UniformLsb
impl UnwindSafe for UniformLsb
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self