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