klyn.math.NDArray.get
method
public get(notnull indices as Long[]) as T
Description

Reads a scalar using one integer coordinate per axis, at any rank. Negative coordinates count backwards along their respective dimensions.

Parameters
ParameterDescription
indicesExactly ndim integer coordinates.
Returns

Element with the array's numeric type.

Throws
  • IndexException for a rank mismatch or an invalid coordinate.
  • NullException if indices is null at runtime; statically null arguments are rejected with TypeError.
Example

value = cube.get(f:[1l, 2l, -1l]) # Also cube[1, 2, -1].