forked from SciSharp/NumSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNdArray.Mgrid.cs
More file actions
18 lines (18 loc) · 896 Bytes
/
NdArray.Mgrid.cs
File metadata and controls
18 lines (18 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace NumSharp
{
public partial class NDArray
{
/// <summary>
/// nd_grid instance which returns a dense multi-dimensional “meshgrid”.
/// An instance of numpy.lib.index_tricks.nd_grid which returns an 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.
/// </summary>
/// <param name="rhs"></param>
/// <returns>mesh-grid `ndarrays` all of the same dimensions</returns>
/// <remarks>https://numpy.org/doc/stable/reference/generated/numpy.mgrid.html</remarks>
public (NDArray, NDArray) mgrid(NDArray rhs)
{
return np.mgrid(this, rhs);
}
}
}