← Back
Editing: test_interpolate.cpython-311.pyc
� d�c�u � �V � d dl mZmZmZmZmZmZmZ d dlm Z d dlZd dlmZm Z mZmZmZmZ d dlZd dlmZmZmZmZmZmZmZmZmZmZmZmZm Z d dl!m"Z"m#Z# d dlm$Z$ d dl%m&Z&m'Z' d d l(m)Z) d d l!m*Z* G d� d� � Z+ G d � d� � Z, G d� d� � Z- G d� d� � Z. G d� d� � Z/ G d� d� � Z0 G d� d� � Z1 G d� d� � Z2 G d� d� � Z3 G d� d� � Z4 G d� d � � Z5 G d!� d"� � Z6d#� Z7ej8 fd$�Z9d%� Z:d)d&�Z;d)d'�Z<d)d(�Z=dS )*� )�assert_�assert_equal�assert_almost_equal�assert_array_almost_equal�assert_array_equal�assert_allclose�suppress_warnings)�raisesN)�mgrid�pi�sin�ogrid�poly1d�linspace) �interp1d�interp2d�lagrange�PPoly�BPoly�splrep�splev� splantider�splint�sproot�Akima1DInterpolator�NdPPoly�BSpline)�poch�gamma)�_ppoly)�assert_deallocated�IS_PYPY)�nquad)�binomc �2 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�TestInterp2Dc �@ � t ddd�dt d�f \ }}t |d|z z � � }t � � 5 }|� t � � t |||� � }t |dd� � t d� � d�� � t ddd �dt d �f \ }}t ||� � � |� � � � � t |d|z z � � d�� � d d d � � d S # 1 swxY w Y d S )Nr � � 4@� 5@� �?� �?� @��decimaly 8@y 9@) r r r r �filter�DeprecationWarningr r r �ravel)�self�y�x�z�sup�II�v�us �J/usr/lib/python3/dist-packages/scipy/interpolate/tests/test_interpolate.py� test_interp2dzTestInterp2D.test_interp2d sQ � ��Q�q��W�a��3�h�&�'���1���#�a�%��L�L�� � � � 9�C��J�J�)�*�*�*��!�Q��"�"�B����3����c�#�h�h��B�B�B�B���1�S��!�B�s�(�*�+�D�A�q����1�7�7�9�9�a�g�g�i�i� 8� 8� #�A�c�!�e�G���a� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9���� 9� 9� 9� 9� 9� 9s �CD�D�Dc � � t ddd� � }t dt d� � }t |d d d �f |d d �d f dz z � � }t � � 5 }|� t � � t |||� � }t |dd� � t d� � d�� � d d d � � d S # 1 swxY w Y d S )Nr r( � � r- r, r. )r r r r r0 r1 r r )r3 r5 r4 r6 r7 r8 s r; �test_interp2d_meshgrid_inputz)TestInterp2D.test_interp2d_meshgrid_input&