dpnp.negative
- dpnp.negative(x1, **kwargs)[source]
Negative element-wise.
For full documentation refer to
numpy.negative
.Limitations
Parameter
x1
is supported asdpnp.ndarray
. 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.Examples
>>> import dpnp as np >>> result = np.negative([1, -1]) >>> [x for x in result] [-1, 1]