pub fn rand_uniform_2d<T>(h: usize, w: usize, low: T, high: T) -> Vec2d<T>
where
    T: Float,
{
    let mut dst: Vec2d<T> = vec![vec![cast_t2u(0.0); w]; h];
    rand_fill_2d(&mut dst, low, high);
    dst
}
/// generate a 1D vector with random values
generate a 1D vector with random values
generate a 1D vector with random values
pub fn rand_uniform_2d<T>(h: usize, w: usize, low: T, high: T) -> Vec2d<T>
where
    T: Float,
{
    let mut dst: Vec2d<T> = vec![vec![cast_t2u(0.0); w]; h];
    rand_fill_2d(&mut dst, low, high);
    dst
}
pub fn rand_uniform_2d < T > ( h : usize , w : usize , low : T , high : T ) -> Vec2d < T > where T : Float , { let mut dst : Vec2d < T > = vec ! [ vec [ cast_t2u ( 0.0 ) w ] h ] ; rand_fill_2d ( & mut dst , low , high ) ; dst }
generate a 1D vector with random values
generate a 1D vector with random values
h
usize
w
usize
low
T
high
T
h
usize
w
usize
low
T
high
T