403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python312/Lib/site-packages/numpy/lib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python312/Lib/site-packages/numpy/lib/tests/__pycache__/test_ufunclike.cpython-312.pyc
�

	�g3��L�ddlZddlmZmZmZddlmZmZmZm	Z	Gd�d�Z
y)�N)�fix�isposinf�isneginf)�assert_�assert_equal�assert_array_equal�
assert_raisesc�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�
TestUfunclikec��tjtjtjtjdddg�}tj|j
t�}tjgd��}t|�}t||�t||�}t||�t||�|jtj�}tt�5t|�ddd�y#1swYyxYw)N��@��)TFFFFF)
�np�array�inf�nan�zeros�shape�boolrr�astype�
complex128r	�	TypeError��self�a�out�tgt�ress     �@C:\Python312\Lib\site-packages\numpy/lib/tests/test_ufunclike.py�
test_isposinfzTestUfunclike.test_isposinf����H�H�b�f�f�r�v�v�g�r�v�v�s�C��>�?���h�h�q�w�w��%���h�h�@�A���q�k���S�#���q�#����S�#���S�#��
�H�H�R�]�]�#��
�9�
%�	��Q�K�	�	�	���+D�D	c��tjtjtjtjdddg�}tj|j
t�}tjgd��}t|�}t||�t||�}t||�t||�|jtj�}tt�5t|�ddd�y#1swYyxYw)Nr
rr)FTFFFF)
rrrrrrrrrrrr	rrs     r �
test_isneginfzTestUfunclike.test_isneginfr"r#c�X�tjgd�gd�g�}tj|jt�}tjgd�gd�g�}t|�}t
||�t||�}t
||�t
||�t
td�d�y)N)��?皙�����?g�?g������?)��皙�����g��g�������)r'r'r'r')r)r)r)r)g��Q�	@�)rrrr�floatrrrs     r �test_fixzTestUfunclike.test_fix)s����H�H�*�,D�E�F���h�h�q�w�w��&���h�h�(�*>�?�@���!�f���S�#���!�S�k���S�#���S�#���S��Y��"�c���G�fd�dtj��tjddg�}�|d��}t|�}t	|tjddg��tt
|���t|jd�|d	}d
|_t|�}tt
|���t|jd
�y)Nc�(��eZdZdd�Zd�fd�	Zd�Zy)�5TestUfunclike.test_fix_with_subclass.<locals>.MyArrayNc�`�tj|d��j|�}||_|S)NT)�copy)rr�view�metadata)�cls�datar5rs    r �__new__z=TestUfunclike.test_fix_with_subclass.<locals>.MyArray.__new__7s)���h�h�t�$�/�4�4�S�9��'����
r.c�|��t|��s|j��}|j�|j|_|S�N)�
isinstancer4r5)r�obj�context�
return_scalar�MyArrays    �r �__array_wrap__zDTestUfunclike.test_fix_with_subclass.<locals>.MyArray.__array_wrap__<s5���!�#�w�/��(�(�7�+�C��<�<�'�#'�=�=�C�L��
r.c�*�t|dd�|_|S)Nr5)�getattrr5)rr<s  r �__array_finalize__zHTestUfunclike.test_fix_with_subclass.<locals>.MyArray.__array_finalize__Cs�� '��Z�� >��
��r.r:)NF)�__name__�
__module__�__qualname__r8r@rC)r?s�r r?r16s���
�

�
r.r?r(r*�foo)r5����)r.�bar)	r�ndarrayrrrrr;rr5)rr�m�f�m0d�f0dr?s      @r �test_fix_with_subclassz$TestUfunclike.test_fix_with_subclass5s����	�b�j�j�	�"
�H�H�c�4�[�!���A��&����F���1�b�h�h��2�w�/�0��
�1�g�&�'��Q�Z�Z��'���h������#�h���
�3��(�)��S�\�\�5�)r.c���tj}tj|�}tj}t	||�t	t|�t|��d}tj|�}tjd�}t	||�t	t|�t|��tjd�}tj||��}t||u�y)Ng333333�rr
)r)
rrr�True_r�typer�float64rr)r�x�actual�expectedrs     r �test_scalarzTestUfunclike.test_scalarUs����F�F�����Q����8�8���V�X�&��T�&�\�4��>�2����������:�:�d�#���V�X�&��T�&�\�4��>�2��h�h�s�m������s�#����#�
�r.N)rDrErFr!r%r-rPrX�r.r rr	s��
�
�
#�*�@r.r)�numpyrrrr�
numpy.testingrrrr	rrYr.r �<module>r\s$���)�)���
[�[r.

Youez - 2016 - github.com/yon3zu
LinuXploit