klyn.math.NDArray.getFlat
method
public getFlat(index as Long) as T
Description

Reads an element by its row-major linear index, regardless of rank. Negative indices count backwards from the end, without flattening/copying.

Parameters
ParameterDescription
indexLinear element index.
Returns

Element of type T.

Throws
  • IndexException outside the array.
Example

value = images.getFlat(0)