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 x is supported as dpnp.ndarray. Keyword argument kwargs is currently unsupported. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Available array 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]]