flâneur — a map of the web's best reading

numpy.mgrid — NumPy v2.0 Manual

numpy.org · 315 words · saved by 1 readers

An instance which returns a dense (or fleshed out) mesh-grid when indexed, so that each returned argument has the same shape. The dimensions and number of the output arrays are equal to the number of indexing dimensions. If the step length is not a complex number, then the stop is not inclusive. However, if the step length is a complex number (e.g. 5j), then the integer part of its magnitude is interpreted as specifying the number of points to create between the start and stop values, where the stop value is inclusive. A single array, containing a set of ndarrays all of the same dimensions. stacked along the first axis. See also like mgrid but returns open (not fleshed out) mesh grids return coordinate matrices from coordinate vectors array concatenator Examples Previous numpy.meshgrid Next numpy.ogrid © Copyright 2008-2024, NumPy Developers. Created using Sphinx 7.2.6. Built with the PyData Sphinx Theme 0.15.3.

numpy.mgrid # numpy. mgrid = <numpy.lib._index_tricks_impl.MGridClass object> # An instance which returns a dense multi-dimensional “meshgrid”. An instance which returns a dense (or fleshed out) mesh-grid when indexed, so that each returned argument has the same shape. The dimensions and number of the output arrays are equal to the number of indexing dimensions. If the step length is not a complex number, then the stop is not inclusive. However, if the step length is a complex number (e.g. 5j), then the integer part of its magnitude is interpreted as specifying the number of points to create b

Explore this link on the map →

related reading