Overview
>
klyn.math
>
NDArray
>
abs
Overview
Index
Tree
Deprecated
klyn.math.NDArray.abs
method
public abs() as NDArray<T>:
Description
Returns the element-wise absolute value.
a = NDArray<Int>.fromList([-3, 1, -4]) print(a.abs()) # [3, 1, 4]