mlx.core.trunc

Contents

mlx.core.trunc#

trunc(a: array, /, *, stream: None | Stream | Device = None) array#

Element-wise truncation towards zero.

Parameters:

a (array) – Input array.

Returns:

The truncated array.

Return type:

array