public _getScalar1D(i as Long) as T
Reads the typed scalar used by one-dimensional indexed mutations. Unlike ordinary indexing, this internal compiler entry never returns a row.
| Parameter | Description |
|---|---|
i | Scalar index; negative indices count from the end. |
The element at the normalized index.
values = NDArray<Int>([10, 20]) values[0] += 2 assert values[0] == 12