| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/scipy/interpolate/__pycache__/ |
Upload File : |
�
x�f_g � � � d dl Z d dlZd dlmZ d dlmZmZ g d�Zd� Z G d� d� Z
G d� d e
� Z G d
� de� Zdd�Z
dd
�Z G d� de
� Zdd�Zy)� N)� factorial)�_asarray_validated�float_factorial)�KroghInterpolator�krogh_interpolate�BarycentricInterpolator�barycentric_interpolate�approximate_taylor_polynomialc �j � t j | � xs t | d� xr | j dk( S )z-Check whether x is if a scalar type, or 0-dim�shape� )�np�isscalar�hasattrr )�xs �</usr/lib/python3/dist-packages/scipy/interpolate/_polyint.py� _isscalarr s) � �
�;�;�q�>�B�W�Q��0�B�Q�W�W��]�B� c �L � e Zd ZdZdZdd�Zd� Zd� Zd� Zd� Z d
d �Z
dd
�Zd
d�Zy)�_Interpolator1Da
Common features in univariate interpolation
Deal with input data type and interpolation axis rolling. The
actual interpolator can assume the y-data is of shape (n, r) where
`n` is the number of x-points, and `r` the number of variables,
and use self.dtype as the y-data type.
Attributes
----------
_y_axis
Axis along which the interpolation goes in the original array
_y_extra_shape
Additional trailing shape of the input arrays, excluding
the interpolation axis.
dtype
Dtype of the y-data arrays. Can be set via _set_dtype, which
forces it to be float or complex.
Methods
-------
__call__
_prepare_x
_finish_y
_reshape_yi
_set_yi
_set_dtype
_evaluate
)�_y_axis�_y_extra_shape�dtypeNc �\ � || _ d | _ d | _ |�| j |||�� y y )N��xi�axis)r r r �_set_yi)�selfr �yir s r �__init__z_Interpolator1D.__init__3 s4 � ����"�����
�
�>��L�L����L�.� r c �p � | j |� \ }}| j |� }| j ||� S )a�
Evaluate the interpolant
Parameters
----------
x : array_like
Points to evaluate the interpolant at.
Returns
-------
y : array_like
Interpolated values. Shape is determined by replacing
the interpolation axis in the original array with the shape of x.
Notes
-----
Input values `x` must be convertible to `float` values like `int`
or `float`.
)�
_prepare_x� _evaluate� _finish_y)r r �x_shape�ys r �__call__z_Interpolator1D.__call__: s5 � �* �_�_�Q�'�
��7��N�N�1����~�~�a��)�)r c � � t � �)zB
Actually evaluate the value of the interpolator.
)�NotImplementedError�r r s r r$ z_Interpolator1D._evaluateS s
� � "�#�#r c �Z � t |dd�� }|j }|j � |fS )zReshape input x array to 1-DFT)�check_finite�
as_inexact)r r �ravel)r r r&