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