There is a positive
function in numpy
(version 1.13+), which seemingly does nothing:
In [1]: import numpy as np
In [2]: A = np.array([0, 1, -1, 1j, -1j, 1+1j, 1-1j, -1+1j, -1-1j, np.inf, -np.inf])
In [3]: A == np.positive(A)
Out[3]:
array([ True, True, True, True, True, True, True, True, True,
True, True])
The documentation says: Returned array or scalar: `y = +x`
What are the use cases of this function?