Struct concrete_core::math::random::Uniform [−][src]
pub struct Uniform;
Expand description
A distribution type representing uniform sampling for unsigned integer types. The value is
uniformly sampled in [0, 2^n[
where n
is the size of the integer type.
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>,
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 Uniform
impl UnwindSafe for Uniform
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self