Struct np.MeshgridResult
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
The result of meshgrid(NDArray[], string, bool, bool): a tuple of N coordinate
grids (NumPy returns a Python tuple). C# cannot return a variadic tuple, so this value stands
in for it — it converts implicitly to NDArray[], Deconstructs
(var (xx, yy) = np.meshgrid(x, y);) and indexes ([k]).
public readonly struct np.MeshgridResult : INDArrayCarrier
- Implements
- Inherited Members
Properties
this[int]
The k-th coordinate grid.
public NDArray this[int index] { get; }
Parameters
indexint
Property Value
Length
Number of coordinate grids (one per input vector).
public int Length { get; }
Property Value
Methods
Deconstruct(out NDArray, out NDArray)
Deconstructs a two-grid result: var (xx, yy) = np.meshgrid(x, y);
public void Deconstruct(out NDArray item1, out NDArray item2)
Parameters
Deconstruct(out NDArray, out NDArray, out NDArray)
Deconstructs a three-grid result.
public void Deconstruct(out NDArray item1, out NDArray item2, out NDArray item3)
Parameters
Deconstruct(out NDArray, out NDArray, out NDArray, out NDArray)
Deconstructs a four-grid result.
public void Deconstruct(out NDArray item1, out NDArray item2, out NDArray item3, out NDArray item4)
Parameters
ToArray()
Returns the coordinate grids as an NDArray[].
public NDArray[] ToArray()
Returns
- NDArray[]
Operators
implicit operator NDArray[](MeshgridResult)
Exposes the coordinate grids — the tuple NumPy's meshgrid returns.
public static implicit operator NDArray[](np.MeshgridResult result)
Parameters
resultnp.MeshgridResult
Returns
- NDArray[]