public native abs() as NDArray<T>
Returns the element-wise absolute value.
a = NDArray<Int>.fromList([-3, 1, -4]) print(a.abs()) # [3, 1, 4]