dpnp.remainder

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

Return element-wise remainder of division.

For full documentation refer to numpy.remainder.

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. Parameters x1 and x2 are supported with equal sizes and shapes.

See also

dpnp.fmod

Calculate the element-wise remainder of division.

dpnp.divide

Standard division.

dpnp.floor

Round a number to the nearest integer toward minus infinity.

Example

>>> import dpnp as np
>>> result = np.remainder(np.array([4, 7]), np.array([2, 3]))
>>> [x for x in result]
[0, 1]