dpnp.floor_divide

dpnp.floor_divide(x1, x2, dtype=None, out=None, where=True, **kwargs)[source]

Compute the largest integer smaller or equal to the division of the inputs.

For full documentation refer to numpy.floor_divide.

Limitations

Parameters x1 and x2 are supported as either dpnp.ndarray or scalar. Parameters dtype, out and where are supported with their default values. Keyword arguments kwargs are currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.

See also

dpnp.reminder

Remainder complementary to floor_divide.

dpnp.divide

Standard division.

dpnp.floor

Round a number to the nearest integer toward minus infinity.

dpnp.ceil

Round a number to the nearest integer toward infinity.

Examples

>>> import dpnp as np
>>> result = np.floor_divide(np.array([1, -1, -2, -9]), np.array([-2, -2, -2, -2]))
>>> [x for x in result]
[-1, 0, 1, 4]