RandomArray

Trait RandomArray 

Source
pub trait RandomArray {
    type ShapeTuple;

    // Required methods
    fn random(shape: Self::ShapeTuple, random_seed: u8) -> Self;
    fn shuffle(&self, random_seed: u8) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn random(shape: Self::ShapeTuple, random_seed: u8) -> Self

Source

fn shuffle(&self, random_seed: u8) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: Float + SampleUniform> RandomArray for Array2<T>

Source§

type ShapeTuple = (usize, usize)

Source§

fn random(shape: Self::ShapeTuple, random_seed: u8) -> Self

Source§

fn shuffle(&self, random_seed: u8) -> Self

Source§

impl<T: Float + SampleUniform> RandomArray for Array3<T>

Source§

type ShapeTuple = (usize, usize, usize)

Source§

fn random(shape: Self::ShapeTuple, random_seed: u8) -> Self

Source§

fn shuffle(&self, random_seed: u8) -> Self

Implementors§