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
andx2
are supported as eitherdpnp.ndarray
or scalar. Parametersdtype
,out
andwhere
are supported with their default values. Keyword argumentskwargs
are currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types. Parametersx1
andx2
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]