Previous topic

numpy.reciprocal

Next topic

numpy.negative

This is documentation for an old release of NumPy (version 1.14). Read this page in the documentation of the latest stable release (version 2.2).

numpy.positive

numpy.positive(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'positive'>

Numerical positive, element-wise.

New in version 1.13.0.

Parameters:

x : array_like or scalar

Input array.

Returns:

y : ndarray or scalar

Returned array or scalar: y = +x.

Notes

Equivalent to x.copy(), but only defined for types that support arithmetic.