J*Fa b d dl Zd dlmZ d dlmc mZ d dl m Z mZmZm Z mZ G d d ZdS ) N)assert_assert_equalassert_array_equalassert_warns assert_raisesc , e Zd Zd Zd Zd Zd Zd ZdS ) TestUfunclikec T t j t j t j t j dddg }t j |j t }t j g d }t j | }t || t j || }t || t || | t j }t t 5 t j | d d d d S # 1 swxY w Y d S )N @ )TFFFFF)nxarrayinfnanzerosshapebooluflisposinfr astypenpcomplex_r TypeErrorselfaouttgtress r/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/lib/tests/test_ufunclike.py test_isposinfzTestUfunclike.test_isposinf / HbfrvgrvsC>??hqw%%h@@@AAl1ooS#l1c""S#S# HHR[!! 9 % % LOOO ;DD!$D!c T t j t j t j t j dddg }t j |j t }t j g d }t j | }t || t j || }t || t || | t j }t t 5 t j | d d d d S # 1 swxY w Y d S )Nr r r )FTFFFF)r r r r r r r r isneginfr r r r r r r s r! test_isneginfzTestUfunclike.test_isneginf r# r$ c t j g dg dg }t j |j t }t j g dg dg }t j | }t || t j || }t || t || t t j d d d S )N) ?皙?g ?g?) 皙g g)r) r) r) r) )r+ r+ r+ r+ gQ @ )r r r r floatr fixr r s r! test_fixzTestUfunclike.test_fix) s H***,D,D,DEFFhqw&&h(((*>*>*>?@@gajjS#gaooS#S#SWT]]A&&&&&