pub fn mesh_grid<T>(x: &[T], y: &[T]) -> (Vec<Vec<T>>, Vec<Vec<T>>)
where
    T: Float,
{
    let xx: Vec<Vec<T>> = (0..y.len()).map(|_| x.to_vec()).collect();
    let yy: Vec<Vec<T>> = (0..y.len()).map(|ii| vec![y[ii]; x.len()]).collect();
    (xx, yy)
}
/// create a mesh-grid vectors
create a mesh-grid vectors
create a mesh - grid vectors
pub fn mesh_grid<T>(x: &[T], y: &[T]) -> (Vec<Vec<T>>, Vec<Vec<T>>)
where
    T: Float,
{
    let xx: Vec<Vec<T>> = (0..y.len()).map(|_| x.to_vec()).collect();
    let yy: Vec<Vec<T>> = (0..y.len()).map(|ii| vec![y[ii]; x.len()]).collect();
    (xx, yy)
}
pub fn mesh_grid < T > ( x : & [ T ] , y : & [ T ] ) -> ( Vec < Vec < T > > , Vec < Vec < T > > ) where T : Float , { let xx : Vec < Vec < T > > = ( 0 .. y . len ( ) ) . map ( | _ | x . to_vec ( ) ) . collect ( ) ; let yy : Vec < Vec < T > > = ( 0 .. y . len ( ) ) . map ( | ii | vec ! [ y [ ii ] x len ( ) ] ) . collect ( ) ; ( xx , yy ) }
create a mesh-grid vectors
create a mesh - grid vectors
x
&[T]
y
&[T]
x
&[T]
y
&[T]