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

Subtracts two NDArrays element-wise.

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