Returns element-wise True where signbit is set (less than zero).
Parameters : | x: array_like :
out : ndarray, optional
|
---|---|
Returns : | result : ndarray of bool
|
Examples
>>> np.signbit(-1.2)
True
>>> np.signbit(np.array([1, -2.3, 2.1]))
array([False, True, False], dtype=bool)