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
x1andx2are supported as eitherdpnp.ndarrayor scalar. Parametersdtype,outandwhereare supported with their default values. Keyword argumentskwargsare currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types. Parametersx1andx2are supported with equal sizes and shapes.See also
dpnp.fmodCalculate the element-wise remainder of division.
dpnp.divideStandard division.
dpnp.floorRound 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]