public native sum() as Object
Computes the sum of all elements.
a = NDArray<Int>([1, 2, 3, 4]) print(a.sum()) # 10