klyn.math.NDArray.set
method
public set(row as Long, col as Long, value as T) as Void
Description

Sets one element in a 2D NDArray.

Parameters
ParameterDescription
rowRow index.
colColumn index.
valueNew value.
Example
a = NDArray<Int>.zeros([2ul, 2ul])
a.set(1, 0, 9)
print(a[1, 0])