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_helper.cpython-311.pyc
�

d�cO&���ddlmZmZddlmZmZddlmZddlZddl	Z
ddlZgd�Zd�Z
d�ZGd�d	��ZGd
�d��ZdS)�)�
next_fast_len�_init_nd_shape_and_axes)�assert_equal�assert_array_equal)�raisesN)�������	�
�i�ic�T�tD]}tt|��|��� dS)N)�_5_smooth_numbersrr)�ns �=/usr/lib/python3/dist-packages/scipy/fft/tests/test_helper.py�test_next_fast_lenrs6��
�*�*���]�1�%�%�q�)�)�)�)�*�*�c�
�|}|dkrJ�	t|d��\}}|dkrn|}�td|dzd��D] }	t||��\}}|dkrn|}��!|dksJd�|||�����dS)NrFTrr	�z#x={} is not {}-smooth, remainder={})�divmod�range�format)�xr�x_orig�q�r�ds      r�_assert_n_smoothr!s���
�F��1�u�u�����a��|�|���1���6�6��
��	��1�a��c�1�
�
����	��!�Q�<�<�D�A�q��A�v�v���A�		��
��6�6�6�0�7�7���1�E�E��6�6�6�6rc��eZdZd�Zd�Zd�Zej�e	j
dkded���d���Zd	�Z
d
S)�TestNextFastLenc��tj�d��d�}|��D]W}t|��}t	|d��|t|d��ksJ�t|d��}t	|d���XdS)Ni�c3�>K�tdd��Ed{V��dV�dS)Nri�i�y)r�rr�numsz0TestNextFastLen.test_next_fast_len.<locals>.nums/s8�����Q��~�~�%�%�%�%�%�%�%�(�(�(�(�(�(r�FTr)�np�random�seedrr!)�selfr'r�ms    rrz"TestNextFastLen.test_next_fast_len,s���
�	���t����	)�	)�	)�����	#�	#�A��a� � �A��Q��#�#�#��
�a��/�/�/�/�/�/��a��&�&�A��Q��"�"�"�"�
	#�	#rc	� �tjtjtjtjtjtjg}|D]F}|d��}t|��}t|tt|�������GdS)Ni90)
r)�int16�int32�int64�uint16�uint32�uint64rr�int)r,�ITYPES�itypr�testNs     r�test_np_integersz TestNextFastLen.test_np_integers;st���(�B�H�b�h��	�2�9�b�i�P���	7�	7�D���U���A�!�!�$�$�E���
�c�!�f�f� 5� 5�6�6�6�6�	7�	7rc��ddddddddddd	d
ddd
d�}|���D]#\}}tt|d��|���$dS)Nrrr	r
rrr
���i��@
)rrr	r
rr�r
�r;r<�i�r>r?T��itemsrr�r,�hamsr�ys    r�testnext_fast_len_smallz'TestNextFastLen.testnext_fast_len_smallBsr���Q�1��q�Q�1������$�d�h�
�
���J�J�L�L�	4�	4�D�A�q���q�$�/�/��3�3�3�3�	4�	4rlz$Hamming Numbers too large for 32-bitT)�reasonr�strictc
��idd�dd�dd�dd�dd�dd�d	d
�dd�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dddddddddddd ��}|���D]#\}}tt|d!��|���$dS)"Ni��hi��hi��i�=ui+��2i,��2iB3l�
�l�
�l�s�'�l�>�9�l�>�9�l lf�nlf�nl>Uk�ol�q�.
l�q�.
l�xQ+t0
l�!�l�!�ldopL?�l��hRl��hR��2 f;���`71Y!l��("� � 
��X l 	 )rLl�2 f;�rMl����rNl`71Y!rOl l
��X rPl!
��X TrCrEs    r�testnext_fast_len_bigz%TestNextFastLen.testnext_fast_len_bigJsI��
��y�
�"/��
��y�
�
�y�
�#0��
�
�,�	
�)9�,�	
�

�=�
�
+<�]�
�
�_�

�
 ��
�
�_�
�
 ��
�
�.�
�
!�"2�
�
�0�
�
"�#4�
�  1�#4�0�#4�0�#4� 2�$6�$6� 2�$6�9
�
�
��<�J�J�L�L�	4�	4�D�A�q���q�$�/�/��3�3�3�3�	4�	4rc�b�tdd���dksJ�tdd���dksJ�dS)Nr(T)�real�r@F)�targetrS)r)r,s r�test_keyword_argsz!TestNextFastLen.test_keyword_argsosD���R�d�+�+�+�r�1�1�1�1��A�E�2�2�2�a�7�7�7�7�7�7rN)�__name__�
__module__�__qualname__rr9rH�pytest�mark�xfail�sys�maxsize�
ValueErrorrQrVr&rrr#r#*s�������
#�
#�
#�7�7�7�4�4�4��[���s�{�U�*�D�(���7�7� 4� 4�7�7� 4�D8�8�8�8�8rr#c�V�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
S)�Test_init_nd_shape_and_axesc���tjd��}d}d}tjg��}tjg��}t|||��\}}t||��t||��dS)Nr
�r)�arrayrr�r,r�shape�axes�shape_expected�
axes_expected�	shape_res�axes_ress        r�test_py_0d_defaultsz/Test_init_nd_shape_and_axes.test_py_0d_defaultsvso���H�Q�K�K��������"���������
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc���tjd��}d}d}tjg��}tjg��}t|||��\}}t||��t||��dS)Ng@rcres        r�test_np_0d_defaultsz/Test_init_nd_shape_and_axes.test_np_0d_defaults�so���H�R�L�L��������"���������
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjgd���}d}d}tjdg��}tjdg��}t|||��\}}t||��t||��dS)N�rrr	r	rrcres        r�test_py_1d_defaultsz/Test_init_nd_shape_and_axes.test_py_1d_defaults�sy���H�Y�Y�Y����������1�#������!��
�
�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjddd��}d}d}tjdg��}tjdg��}t|||��\}}t	||��t	||��dS)Nrr皙�����?r)r)�arangerdrrres        r�test_np_1d_defaultsz/Test_init_nd_shape_and_axes.test_np_1d_defaults�sy���I�a��B����������2�$������!��
�
�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjgd�gd�g��}d}d}tjddg��}tjddg��}t|||��\}}t||��t||��dS)N)rrr	r
)rrr@r
rr
rrrcres        r�test_py_2d_defaultsz/Test_init_nd_shape_and_axes.test_py_2d_defaults�s����H�l�l�l�"�l�l�$�
%�
%��������1�a�&�)�)����!�Q��(�(�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc�"�tjddd���dd��}d}d}tjddg��}tjddg��}t	|||��\}}t||��t||��dS)Nrrrsrr)r)rt�reshaperdrrres        r�test_np_2d_defaultsz/Test_init_nd_shape_and_axes.test_np_2d_defaults�s����I�a��B���'�'��1�-�-��������1�a�&�)�)����!�Q��(�(�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjgd���}d}d}tjgd���}tjgd���}t|||��\}}t	||��t	||��dS)N�rrrr	r
�rrrr	r
�r)�zerosrdrrres        r�test_np_5d_defaultsz/Test_init_nd_shape_and_axes.test_np_5d_defaults�s����H�_�_�_�%�%��������/�/�/�2�2�������1�1�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjgd���}gd�}d}tjgd���}tjgd���}t|||��\}}t	||��t	||��dS)Nr|)r���r�rr
)rrrrr
r}r~res        r�test_np_5d_set_shapez0Test_init_nd_shape_and_axes.test_np_5d_set_shape�s����H�_�_�_�%�%��"�"�"������"2�"2�"2�3�3�������1�1�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjgd���}d}gd�}tjgd���}tjgd���}t|||��\}}t	||��t	||��dS)Nr|)r
rr)r
rrr~res        r�test_np_5d_set_axesz/Test_init_nd_shape_and_axes.test_np_5d_set_axes�s����H�_�_�_�%�%�����y�y����)�)�)�,�,�������+�+�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjgd���}gd�}gd�}tjgd���}tjgd���}t|||��\}}t	||��t	||��dS)Nr|)rr�r)rrr	)rrrr~res        r�test_np_5d_set_shape_axesz5Test_init_nd_shape_and_axes.test_np_5d_set_shape_axes�s����H�_�_�_�%�%�������y�y����*�*�*�-�-�������+�+�
�5�a���E�E��	�8��Y��/�/�/��X�}�-�-�-�-�-rc��tjd��}t|dd���\}}t|gd���t|gd���dS)N)rr	r
r)rrr�rfrgrp)r)rrr)r,rrfrgs    r�test_shape_axes_subsetz2Test_init_nd_shape_and_axes.test_shape_axes_subset�sW���H�\�"�"��-�a�y�t�L�L�L���t��5�)�)�)�,�,�,��4����+�+�+�+�+rc��tjd��}ttd���5t	|dddgddgg���ddd��n#1swxYwYttd���5t	|dgd����ddd��n#1swxYwYttd	���5t	|ddg���ddd��n#1swxYwYttd	���5t	|dd
g���ddd��n#1swxYwYttd���5t	|dddg���ddd��n#1swxYwYttd
���5t	|ddgddggd���ddd��n#1swxYwYttd
���5t	|gd�d���ddd��n#1swxYwYttd���5t	tjgd���gd�dg���ddd��n#1swxYwYttd���5t	|dgd���ddd��n#1swxYwYttd���5t	|d
d���ddd��dS#1swxYwYdS)Nrz-axes must be a scalar or iterable of integers)�matchrr	r
r�)g�?g@g@g@z$axes exceeds dimensionality of input���zall axes must be uniquerz.shape must be a scalar or iterable of integerszBwhen given, axes and shape arguments have to be of the same length)rrrrrpz1invalid number of data points \(\[0\]\) specifiedz2invalid number of data points \(\[-2\]\) specified)r)r�
assert_raisesr_r)r,rs  r�test_errorsz'Test_init_nd_shape_and_axes.test_errorss���H�Q�K�K��
�:�.2�3�3�3�	J�	J�#�A�T�!�Q��!�Q��8H�I�I�I�I�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J����	J�	J�	J�	J��:�.2�3�3�3�	J�	J�#�A�T�8H�8H�8H�I�I�I�I�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J����	J�	J�	J�	J��:�!G�I�I�I�	=�	=�#�A�T���<�<�<�<�	=�	=�	=�	=�	=�	=�	=�	=�	=�	=�	=����	=�	=�	=�	=��:�!G�I�I�I�	>�	>�#�A�T���=�=�=�=�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>����	>�	>�	>�	>��:�!:�<�<�<�	@�	@�#�A�T��A��?�?�?�?�	@�	@�	@�	@�	@�	@�	@�	@�	@�	@�	@����	@�	@�	@�	@��:�.2�3�3�3�	J�	J�#�A�q�!�f�q�!�f�-=�D�I�I�I�I�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J����	J�	J�	J�	J��:�.2�3�3�3�	J�	J�#�A�-=�-=�-=�D�I�I�I�I�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J�	J����	J�	J�	J�	J��:�"<�=�=�=�	?�	?�
$�B�H�\�\�\�$:�$:�*3�)�)�1�#�
?�
?�
?�
?�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?����	?�	?�	?�	?��:�"3�4�4�4�	=�	=�
$�A�a�S�t�<�<�<�<�	=�	=�	=�	=�	=�	=�	=�	=�	=�	=�	=����	=�	=�	=�	=�
�:�"4�5�5�5�	<�	<�
$�A�R�d�;�;�;�;�	<�	<�	<�	<�	<�	<�	<�	<�	<�	<�	<�	<����	<�	<�	<�	<�	<�	<s��A�A�A�1B�B�B�3C�C�C�4D�D�D�5E�E�E�7F�F �#F �=G�G"�%G"�?*H5�5H9�<H9�I6�6I:�=I:�J7�7J;�>J;N)rWrXrYrlrnrqrurwrzr�r�r�r�r�r�r&rrrarats�������.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�,�,�,�,<�,<�,<�,<�,<rra)�scipy.fft._helperrr�
numpy.testingrrrZrr��numpyr)r]rrr!r#rar&rr�<module>r�s��D�D�D�D�D�D�D�D�:�:�:�:�:�:�:�:�*�*�*�*�*�*�
�
�
�
�����
�
�
�
�����*�*�*�
F�F�F�,G8�G8�G8�G8�G8�G8�G8�G8�Tx<�x<�x<�x<�x<�x<�x<�x<�x<�x<r

Youez - 2016 - github.com/yon3zu
LinuXploit