ILNumerics Ultimate VS

MutableT1, LocalT, InT, OutT, RetT, StorageTflat Property

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Readonly iterator over the elements of this array in row-major order.

[ILNumerics Core Module]

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

public IEnumerable<T1> flat { get; }

Return Value

Type: IEnumerableT1
Iterator object.

The IEnumerableT returned allows to iterate over the elements of an array A as if 'A.flatten' was called first. Iteration goes along the rows (last dimension indices varying fastest).

The iterator extends the lifetime of volatile arrays (RetArrayT1) until iteration is finished or canceled.

Note that in difference to numpys 'flatiter' objects, the source array cannot be changed via the iterator. For assigning to elements consider utilizing a size iterator Iterator(Size, NullableStorageOrders) to acquire an iterator over the element offsets in memory and use [!:SetValue(T1, long)] or [!:Array<T>.GetHostPointerForWrite()] to write to the memory.

flat is defined for reference type elements and for all numeric value type element arrays.

[ILNumerics Core Module]

See Also


Other Resources