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/linalg/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

d�c�����dZddlZddlmZddlmZmZmZddl	m
Z
mZddlZddlm
Zd�Zd�Zd	�Zd
�Zd�Zd�Zej�d
���d���ZdS)z1Test functions for linalg._solve_toeplitz module
�N)�levinson)�solve�toeplitz�solve_toeplitz)�assert_equal�assert_allclose)�raisesc��tj�d��}dD�]Z}|�|��}|���dkr|d|�|��zz}|�|��}|���dkr|d|�|��zz}|�|��}|���dkr|d|�|��zz}t||f|��}t
t||���|��}t||��t||���}t
t|��|��}t||����\dS)N��)����
g�?��?��r��b)	�np�random�RandomState�randn�randrrrr)r�n�cr�y�actual�desireds       �H/usr/lib/python3/dist-packages/scipy/linalg/tests/test_solve_toeplitz.py�test_solve_equivalencer s^��
�Y�
"�
"�4�
(�
(�F�
�)�)���L�L��O�O���;�;�=�=�3����B����a���(�(�A��L�L��O�O���;�;�=�=�3����B����a���(�(�A��L�L��O�O���;�;�=�=�3����B����a���(�(�A� ��1��q�)�)�����a�(�(�(�!�,�,�����(�(�(� ��Q�'�'�'�������Q�'�'�����(�(�(�(�')�)�c��tj�d��}|�d��}|�d��}dD]�}dD]{}|j|�|z}t	||f|���}tt
||���|��}t|j|��t|j|��t||���|��dS)Nr�)rr))r#)r#r)r#rr
rr)
rrrrrrrr�shaper)rrr�offset�yshaperrrs        r�test_multiple_rhsr'%s���
�Y�
"�
"�4�
(�
(�F����Q���A����Q���A��-�-��/�	-�	-�F����f�%��.�A�#�Q�q�E�Q�/�/�/�F��H�Q�!�,�,�,�a�0�0�G����v�.�.�.�����/�/�/��F�G�,�,�,�,�
	-�-�-r!c��gd�}gd�}gd�}t||f|��}tt||���|��}t||��dS)N)rr
r#�)rr�	�)�rr#r
r)rrrr)rrrrrs     r�test_native_list_argumentsr-3sb���	�	�A��
�
�A��	�	�A�
�Q�q�E�1�
%�
%�F��H�Q�!�$�$�$�a�(�(�G��F�G�$�$�$�$�$r!c�"�tj�d��}d}|�|��}|�|��}|�|��}d|d<t	tjjt||f|���dS)Nrr#rr�rrrr�
assert_raises�linalg�LinAlgErrorr)rrrrrs     r�test_zero_diag_errorr3<s���
�Y�
"�
"�4�
(�
(�F�	�A����Q���A����Q���A����Q���A��A�a�D��"�)�'���A��!�%�%�%�%�%�%r!c���tj�d��}gd�}|�d��}t	tjjt||���dS)Nr)r
r
rrrr/)rrrs   r�test_wikipedia_counterexampler5HsS���Y�
"�
"�4�
(�
(�F��	�	�A����Q���A��"�)�'���a�@�@�@�@�@�@r!c	�T�tj�d��}|�d��}|�d��dz}dg}dg}t	dd��D]|}|�t
|d|dz
�|d|����d��|�t
|d|dz
�|d|����d���}tj|dd	d�|dd�f��}tj|dd	d����|dd�f��}t||dd����\}}	t||dd����\}}
t||	dd���t||
dd���dS)
Nrrrrr
r������r)rrrr�range�appendr�concatenate�conjrr)r�y_d�y_z�reflection_coeffs_d�reflection_coeffs_z�i�
y_d_concat�
y_z_concat�_�ref_d�ref_zs           r�test_reflection_coeffsrGQs����Y�
"�
"�4�
(�
(�F�
�,�,�r�
�
�C�
�,�,�r�
�
�R�
�C��#���#��
�1�b�\�\�P�P���"�"�>�#�f��!��f�+��Q�q�S��#J�#J�#J�2�#N�O�O�O��"�"�>�#�f��!��f�+��Q�q�S��#J�#J�#J�2�#N�O�O�O�O����R��"�W��s�3�B�3�x� 8�9�9�J����R��"�W��!2�!2�!4�!4�c�#�2�#�h� ?�@�@�J��
�c�!�"�"�g�.�.�.�H�A�u��
�c�!�"�"�g�.�.�.�H�A�u��'��s��s��4�4�4��'��s��s��4�4�4�4�4r!z!Instability of Levinson iteration)�reasonc�"�tj�d��}d}dtj|��dzz}|�|��}t||���}t
t|��|��}t||��dS)Nr�dg�������?r
r)	rrr�arangerrrrr)rrrr�	solution1�	solution2s      r�
test_unstablerNgs����Y�
"�
"�4�
(�
(�F��A���	�!���a�� �A����Q���A��q�A�&�&�&�I��h�q�k�k�1�%�%�I��I�y�)�)�)�)�)r!)�__doc__�numpyr�scipy.linalg._solve_toeplitzr�scipy.linalgrrr�
numpy.testingrr�pytestr	r0r r'r-r3r5rG�mark�xfailrN�r!r�<module>rXs��������1�1�1�1�1�1�8�8�8�8�8�8�8�8�8�8�7�7�7�7�7�7�7�7�
�
�
�
�*�*�*�*�*�*�)�)�)�2-�-�-�%�%�%�	%�	%�	%�A�A�A�5�5�5�,����=��>�>�*�*�?�>�*�*�*r!

Youez - 2016 - github.com/yon3zu
LinuXploit