[ILNumerics Core Module]
Namespace: ILNumerics.Core.Arrays
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Return Value
Type: IEnumerableT1Iterator 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]