PY-15272 Numpy: comparison operations on arrays should return array, not bool

skeletons for unary operations
This commit is contained in:
Ekaterina Tuzova
2016-05-17 14:27:11 +03:00
parent 395398c0d0
commit cc203e4a79
@@ -129,6 +129,15 @@ class ndarray(object):
"""
pass
def __neg__(self, *args, **kwargs): # real signature unknown
"""
x.__neg__() <==> -x
Returns
-------
out : ndarray
"""
pass
def __rmul__(self, y): # real signature unknown; restored from __doc__
"""
x.__rmul__(y) <==> y*x
@@ -339,6 +348,16 @@ class ndarray(object):
"""
pass
def __pos__(self, *args, **kwargs): # real signature unknown
"""
x.__pos__() <==> +x
Returns
-------
out : ndarray
"""
pass
def __ror__(self, y): # real signature unknown; restored from __doc__
"""
x.__ror__(y) <==> y|x
@@ -729,6 +748,16 @@ class ndarray(object):
"""
pass
def __invert__(self, *args, **kwargs): # real signature unknown
"""
x.__invert__() <==> ~x
Returns
-------
out : ndarray
"""
pass
def __ior__(self, y): # real signature unknown; restored from __doc__
"""
x.__ior__(y) <==> x|=y