klyn.math.Math.abs
method
public static abs<NUMBER_TYPE extends AbstractNumber>(values as NDArray<NUMBER_TYPE>) as NDArray<NUMBER_TYPE>:
Description
Returns the element-wise absolute value of an array. This overload delegates to the native vectorized NDArray kernel.
import klyn.math

values = NDArray<Int>.fromList([-3, 1, -4])
print(Math.abs(values))