klyn.math.NDArray.set
method
public set(row as Int, col as Int, value as T) as Void:
Description
Sets one element in a 2D NDArray. a = NDArray<Int>.zeros([2u, 2u]) a.set(1, 0, 9) print(a[1, 0])
Parameters
  • row Row index.
  • col Column index.
  • value New value.
Example