ILNumerics Ultimate VS

ExtensionMethodsIndexIteratorT Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Efficient iterator over generic (but numeric!) type elements for use in indexing.

[ILNumerics Core Module]

Namespace:  ILNumerics
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: (5.5.7503.3146)

public static IEnumerable<long> IndexIterator<T>(
	this BaseArray<T> A,
	long lastDimIdx,
	Nullable<StorageOrders> order = null


Type: ILNumericsBaseArrayT
The array instance.
Type: SystemInt64
The value of the highest index addressable by this iterator. This is used to handle negative indices.
order (Optional)
Type: SystemNullableStorageOrders
[Optional] Determines the order the elements are walked along. Default: null (DefaultStorageOrder)

Type Parameters

Element type. Expected to be numeric.

Return Value

Type: IEnumerableInt64
Slim, self destructing iterator instance, iterating over all elements of this array and converting values to long indices.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BaseArrayT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

[ILNumerics Core Module]

See Also