Class NDIteratorExtensions
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
public static class NDIteratorExtensions
- Inheritance
-
NDIteratorExtensions
- Inherited Members
Methods
AsIterator(IArraySlice, Shape)
Creates a new iterator to iterate given arr as if it were shaped like shape.
public static NDIterator AsIterator(this IArraySlice arr, Shape shape)
Parameters
arrIArraySliceThe IArraySlice to iterate.
shapeShape
Returns
AsIterator(IArraySlice, Shape, Shape, bool)
Creates a new iterator to iterate given arr as if it were shaped like shape.
public static NDIterator AsIterator(this IArraySlice arr, Shape shape, Shape broadcastShape, bool autoReset)
Parameters
arrIArraySliceThe IArraySlice to iterate.
shapeShapeThe original shape, non-broadcasted.
broadcastShapeShapeThe broadcasted shape of
shapeautoResetbool
Returns
AsIterator(IArraySlice, Shape, bool)
Creates a new iterator to iterate given arr as if it were shaped like shape.
public static NDIterator AsIterator(this IArraySlice arr, Shape shape, bool autoreset)
Parameters
arrIArraySliceThe IArraySlice to iterate.
shapeShapeThe original shape, non-broadcasted, to represent this iterator.
autoresetboolShould this iterator loop forever?
Returns
AsIterator(UnmanagedStorage, bool)
Creates a new iterator to iterate given nd.
public static NDIterator AsIterator(this UnmanagedStorage us, bool autoreset = false)
Parameters
usUnmanagedStorageThe ndarray to iterate.
autoresetboolShould this iterator loop forever?
Returns
AsIterator(NDArray, bool)
Creates a new iterator to iterate given nd.
public static NDIterator AsIterator(this NDArray nd, bool autoreset = false)
Parameters
Returns
AsIterator<T>(NDArray, bool)
Creates a new iterator to iterate given nd.
public static NDIterator<T> AsIterator<T>(this NDArray nd, bool autoreset = false) where T : unmanaged
Parameters
Returns
- NDIterator<T>
Type Parameters
T