klyn.math.NDArray.operator+
method
public static native operator+(notnull first as NDArray<T>, notnull second as NDArray<T>) as NDArray<T>
Description

Adds two NDArrays element-wise.

a = NDArray<Int>.full([2, 2], 1)
b = NDArray<Int>.full([2, 2], 2)
c = a + b
Throws
  • NullException if first, second is null at runtime; statically null arguments are rejected with TypeError.