Function generate2d
Source pub fn generate2d(
xmin: f64,
xmax: f64,
ymin: f64,
ymax: f64,
nx: usize,
ny: usize,
) -> (Vec<Vec<f64>>, Vec<Vec<f64>>)
Expand description
Generates 2d points (meshgrid)
xmin
, xmax
– range along x
ymin
, ymax
– range along y
nx
– is the number of points along x (must be >= 2
)
ny
– is the number of points along y (must be >= 2
)
§Output
x
, y
– (ny
by nx
) 2D arrays