Table of Contents

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

arr IArraySlice

The IArraySlice to iterate.

shape Shape

Returns

NDIterator

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

arr IArraySlice

The IArraySlice to iterate.

shape Shape

The original shape, non-broadcasted.

broadcastShape Shape

The broadcasted shape of shape

autoReset bool

Returns

NDIterator

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

arr IArraySlice

The IArraySlice to iterate.

shape Shape

The original shape, non-broadcasted, to represent this iterator.

autoreset bool

Should this iterator loop forever?

Returns

NDIterator

AsIterator(UnmanagedStorage, bool)

Creates a new iterator to iterate given nd.

public static NDIterator AsIterator(this UnmanagedStorage us, bool autoreset = false)

Parameters

us UnmanagedStorage

The ndarray to iterate.

autoreset bool

Should this iterator loop forever?

Returns

NDIterator

AsIterator(NDArray, bool)

Creates a new iterator to iterate given nd.

public static NDIterator AsIterator(this NDArray nd, bool autoreset = false)

Parameters

nd NDArray

The ndarray to iterate.

autoreset bool

Should this iterator loop forever?

Returns

NDIterator

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

nd NDArray

The ndarray to iterate.

autoreset bool

Should this iterator loop forever?

Returns

NDIterator<T>

Type Parameters

T