Skip to main content

NDArray::abs

public static function abs(NDArray|array|float|int $array): NDArray|float|int;

Computes the element-wise absolute value of an array, returning a new array with non-negative elements.


Notes

tip

GPU SUPPORTED

This operation is supported by GPU (VRAM) and contains a custom CUDA kernel.