Trait argmin_math::ArgminRandom

source ·
pub trait ArgminRandom {
    // Required method
    fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Self;
}
Expand description

Create a random number

Required Methods§

source

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Self

Get a random element between min and max,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ArgminRandom for f32

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> f32

source§

impl ArgminRandom for f64

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> f64

source§

impl ArgminRandom for i8

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> i8

source§

impl ArgminRandom for i16

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> i16

source§

impl ArgminRandom for i32

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> i32

source§

impl ArgminRandom for i64

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> i64

source§

impl ArgminRandom for u8

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> u8

source§

impl ArgminRandom for u16

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> u16

source§

impl ArgminRandom for u32

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> u32

source§

impl ArgminRandom for u64

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> u64

source§

impl ArgminRandom for Vec<f32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<f32>

source§

impl ArgminRandom for Vec<f64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<f64>

source§

impl ArgminRandom for Vec<i8>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<i8>

source§

impl ArgminRandom for Vec<i16>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<i16>

source§

impl ArgminRandom for Vec<i32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<i32>

source§

impl ArgminRandom for Vec<i64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<i64>

source§

impl ArgminRandom for Vec<u8>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<u8>

source§

impl ArgminRandom for Vec<u16>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<u16>

source§

impl ArgminRandom for Vec<u32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<u32>

source§

impl ArgminRandom for Vec<u64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<u64>

source§

impl ArgminRandom for Vec<Vec<f32>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<f32>>

source§

impl ArgminRandom for Vec<Vec<f64>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<f64>>

source§

impl ArgminRandom for Vec<Vec<i8>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<i8>>

source§

impl ArgminRandom for Vec<Vec<i16>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<i16>>

source§

impl ArgminRandom for Vec<Vec<i32>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<i32>>

source§

impl ArgminRandom for Vec<Vec<i64>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<i64>>

source§

impl ArgminRandom for Vec<Vec<u8>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<u8>>

source§

impl ArgminRandom for Vec<Vec<u16>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<u16>>

source§

impl ArgminRandom for Vec<Vec<u32>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<u32>>

source§

impl ArgminRandom for Vec<Vec<u64>>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Vec<Vec<u64>>

source§

impl ArgminRandom for Array1<f32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<f32>

source§

impl ArgminRandom for Array1<f64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<f64>

source§

impl ArgminRandom for Array1<i8>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<i8>

source§

impl ArgminRandom for Array1<i16>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<i16>

source§

impl ArgminRandom for Array1<i32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<i32>

source§

impl ArgminRandom for Array1<i64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<i64>

source§

impl ArgminRandom for Array1<u8>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<u8>

source§

impl ArgminRandom for Array1<u16>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<u16>

source§

impl ArgminRandom for Array1<u32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<u32>

source§

impl ArgminRandom for Array1<u64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array1<u64>

source§

impl ArgminRandom for Array2<f32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<f32>

source§

impl ArgminRandom for Array2<f64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<f64>

source§

impl ArgminRandom for Array2<i8>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<i8>

source§

impl ArgminRandom for Array2<i16>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<i16>

source§

impl ArgminRandom for Array2<i32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<i32>

source§

impl ArgminRandom for Array2<i64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<i64>

source§

impl ArgminRandom for Array2<u8>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<u8>

source§

impl ArgminRandom for Array2<u16>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<u16>

source§

impl ArgminRandom for Array2<u32>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<u32>

source§

impl ArgminRandom for Array2<u64>

source§

fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Array2<u64>

source§

impl<N, R, C> ArgminRandom for OMatrix<N, R, C>
where N: Scalar + PartialOrd + SampleUniform, R: Dim, C: Dim, DefaultAllocator: Allocator<N, R, C>,

source§

fn rand_from_range<T: Rng>( min: &Self, max: &Self, rng: &mut T, ) -> OMatrix<N, R, C>

Implementors§