Skip to main content

NDArray::fix

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

Rounds the elements of an array towards zero, returning a new array with the elements rounded towards zero.


Notes

tip

GPU SUPPORTED

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