dpnp.around

dpnp.around(x, /, decimals=0, out=None)[source]

Round an array to the given number of decimals.

For full documentation refer to numpy.around.

Returns:

out – The rounded value of elements of the array.

Return type:

dpnp.ndarray

Limitations

Parameter x is only supported as either dpnp.ndarray or dpctl.tensor.usm_ndarray. Parameters decimals is supported with its default value. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.

See also

dpnp.round

Equivalent function; see for details.

dpnp.ndarray.round

Equivalent function.

dpnp.rint

Round elements of the array to the nearest integer.

dpnp.ceil

Compute the ceiling of the input, element-wise.

dpnp.floor

Return the floor of the input, element-wise.

dpnp.trunc

Return the truncated value of the input, element-wise.

Notes

This function works the same as dpnp.round.