dpnp.modf
- dpnp.modf(x1, **kwargs)[source]
Return the fractional and integral parts of an array, element-wise.
For full documentation refer to
numpy.modf.Limitations
Parameter
xis supported asdpnp.ndarray. Keyword argumentskwargsare currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.Examples
>>> import dpnp as np >>> a = np.array([1, 2]) >>> result = np.modf(a) >>> [[x for x in y] for y in result ] [[1.0, 2.0], [0.0, 0.0]]