Skip to main content

NDArray::trunc

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

Truncates the elements of an array towards zero, returning a new array with the elements truncated towards zero.


Notes

tip

GPU SUPPORTED

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