# numpy.isneginf¶

`numpy.``isneginf`(x, out=None)[source]

Test element-wise for negative infinity, return result as bool array.

Parameters: x : array_like The input array. out : array_like, optional A boolean array with the same shape and type as x to store the result. out : ndarray A boolean array with the same dimensions as the input. If second argument is not supplied then a numpy boolean array is returned with values True where the corresponding element of the input is negative infinity and values False where the element of the input is not negative infinity. If a second argument is supplied the result is stored there. If the type of that array is a numeric type the result is represented as zeros and ones, if the type is boolean then as False and True. The return value out is then a reference to that array.

Notes

NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic (IEEE 754).

Errors result if the second argument is also supplied when x is a scalar input, or if first and second arguments have different shapes.

Examples

```>>> np.isneginf(np.NINF)
array(True, dtype=bool)
>>> np.isneginf(np.inf)
array(False, dtype=bool)
>>> np.isneginf(np.PINF)
array(False, dtype=bool)
>>> np.isneginf([-np.inf, 0., np.inf])
array([ True, False, False])
```
```>>> x = np.array([-np.inf, 0., np.inf])
>>> y = np.array([2, 2, 2])
>>> np.isneginf(x, y)
array([1, 0, 0])
>>> y
array([1, 0, 0])
```

numpy.isnat

numpy.isposinf
{"ft_lang_label":"__label__en","ft_lang_prob":0.575848,"math_prob":0.980837,"size":1415,"snap":"2021-21-2021-25","text_gpt3_token_len":365,"char_repetition_ratio":0.1396173,"word_repetition_ratio":0.035555556,"special_character_ratio":0.26855123,"punctuation_ratio":0.18,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9983416,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-12T16:59:06Z\",\"WARC-Record-ID\":\"<urn:uuid:90b4903d-e4a8-4c71-b275-2668a34f70cf>\",\"Content-Length\":\"11278\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d042b6ce-bf24-4b1e-b40e-1f4e038d26d3>\",\"WARC-Concurrent-To\":\"<urn:uuid:257076f1-55d9-4f69-b125-4a13c24569d7>\",\"WARC-IP-Address\":\"50.17.248.72\",\"WARC-Target-URI\":\"https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.isneginf.html\",\"WARC-Payload-Digest\":\"sha1:2O7BHC5XOS45MZO5QAPXRHP64E67THC7\",\"WARC-Block-Digest\":\"sha1:2WE5C5RD3R2D7DDFA22ECEADASZEWXS5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623487586239.2_warc_CC-MAIN-20210612162957-20210612192957-00479.warc.gz\"}"}