+
    /iD                     ,   ^ RI t ^ RIt^ RIt^ RIHt ^ RIHtHtH	t	H
t
 ^ RIHt ^ RIHt ^ RIHtHtHtHtHt ^ RIHt ^ RIHt ]P2                  P5                  R	]P6                  4      t]
! ]4       ! R
 R4      4       t ! R R4      t ! R R4      tR# )    N)ComplexWarning)xp_assert_equalxp_assert_closeassert_array_almost_equalmake_xp_test_case)skip_xp_invalid_arg)raises)RegularGridInterpolatorinterpnRectBivariateSplineNearestNDInterpolatorLinearNDInterpolator)matrix)_run_concurrent_barriermethodc            
         a  ] tR t^t o R tR tR tR t]R 4       t	]
P                  P                  R. R=O4      R 4       t]
P                  P                  R]]P                  ! . R>O. R?O. R@O.4      3]]P                  ! . RAO4      3.4      R	 4       tR
 t]R 4       tR tR tR t]
P                  P                  R. RBOR3. RCOR3. RDOR3. REOR3. RFOR3.4      R 4       tR tR tR tR tR tR tR tR t]
P                  P                  RRR.4      R 4       tR  t R! t!]
P                  P                  R"]PD                  ]PF                  .4      ]
P                  P                  R#. RGO4      ]
P                  P                  RRR.4      R$ 4       4       4       t$R% t%]
P                  P                  R&R']PL                  ]PN                  .4      ]
P                  P                  RRR.4      R( 4       4       t(]
P                  P                  RRR.4      R) 4       t)]
P                  P                  RRR.4      R* 4       t*]
P                  PW                  ^
4      ]]
P                  P                  RH^R+ 3^R, 3^R- 3^R. 3.4      R/ 4       4       4       t,R0 t-]R1 4       t.]
P                  PW                  ^4      ]R2 4       4       t/]]
P                  P                  R3R4R5.4      R6 4       4       t0R7 t1]
P                  P                  R"]PD                  ]PF                  ]Pd                  ]Pf                  .4      ]
P                  P                  R8]PD                  ]PF                  .4      R9 4       4       t4R: t5R; t6R<t7V t8R'# )ITestRegularGridInterpolatorc                P   R.^,          pVP                  . RO4      pVR\        P                  \        P                  \        P                  3,          pV\        P                  R\        P                  \        P                  3,          pV\        P                  \        P                  R\        P                  3,          pV\        P                  \        P                  \        P                  R3,          pWE^
,          ,           V^d,          ,           VR,          ,           pW#3# )        NNN  r         ?      ?asarraynpnewaxisselfxppointsvaluesvalues0values1values2values3s   &&      ^/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/interpolate/tests/test_rgi.py_get_sample_4d*TestRegularGridInterpolator._get_sample_4d   s    !#L)BJJ

BJJ>?Q

BJJ>?RZZBJJ>?RZZQ>?bL(7S=87T>I~    c                n   R.^,          R.^,          ,           pVP                  . RO4      pVR\        P                  \        P                  \        P                  3,          pV\        P                  R\        P                  \        P                  3,          pV\        P                  \        P                  R\        P                  3,          pV\        P                  \        P                  \        P                  R3,          pWE^
,          ,           V^d,          ,           VR,          ,           pW#3# r   r   r   r   )r         @      $@r   r   s   &&      r(   _get_sample_4d_2,TestRegularGridInterpolator._get_sample_4d_2)   s    !#}o&99L)BJJ

BJJ>?Q

BJJ>?RZZBJJ>?RZZQ>?bL(7S=87T>I~r+   c                P   R.^,          pVP                  . RO4      pVR\        P                  \        P                  \        P                  3,          pV\        P                  R\        P                  \        P                  3,          pV\        P                  \        P                  R\        P                  3,          pV\        P                  \        P                  \        P                  R3,          pWE^
,          ,           V^d,          ,           VR,          ,           pW#3# )r   r   r   r   r   r         ?       @      @      @r   r   s   &&      r(   _get_sample_4d_3,TestRegularGridInterpolator._get_sample_4d_34   s    56:?@BJJ

BJJ>?Q

BJJ>?RZZBJJ>?RZZQ>?bL(7S=87T>I~r+   c                P   R.^,          pVP                  R R.4      pVR\        P                  \        P                  \        P                  3,          pV\        P                  R\        P                  \        P                  3,          pV\        P                  \        P                  R\        P                  3,          pV\        P                  \        P                  \        P                  R3,          pWE^
,          ,           V^d,          ,           VR,          ,           pW#3# )r   r   r   r   )r   r   r   r   s   &&      r(   _get_sample_4d_4,TestRegularGridInterpolator._get_sample_4d_4?   s    !S#J'BJJ

BJJ>?Q

BJJ>?RZZBJJ>?RZZQ>?bL(7S=87T>I~r+   c                   V P                  \        R 7      w  r#\        P                  ! . RO. RO. RO.4      p\        VVP	                  4       VR7      pV! VP	                  4       4      p\        VVVR7      pV! V4      p\        Wg4       R# ))r!   r   N皙?r@   r   ?皙?r@   g?g?r   r   r   r   )r8   r   r   r
   tolistr   )r    r   r"   r#   sampleinterpv1v2s   &&      r(   test_list_input+TestRegularGridInterpolator.test_list_inputJ   s    ..".5/1D/1 2 ))/068 FMMO$()/068 F^r+   r   c                  a V P                  S4      w  r4\        V3R  lV 4       4      pRp\        P                  ! \        VR7      ;_uu_ 4        \        W4VR7       RRR4       \        W44      pSP                  . RO. RO. RO.4      p\        P                  ! \        VR7      ;_uu_ 4        V! WqR7       RRR4       R#   + '       g   i     Lm; i  + '       g   i     R# ; i)c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5iNr   .0pr!   s   & r(   	<genexpr>DTestRegularGridInterpolator.test_spline_dim_error.<locals>.<genexpr>^        4VbjjmmV   !zpoints in dimensionmatchr>   Nr?   rB   rD   )r;   listpytestr	   
ValueErrorr
   r   )r    r   r!   r"   r#   rX   rG   rF   s   &&f     r(   test_spline_dim_error1TestRegularGridInterpolator.test_spline_dim_error[   s    ..r24V44% ]]:U33#F6B 4 )8/1D/1 2]]:U336) 43 43 433s   C/
CC	C'	zpoints_values, samplec                   a V! V S4      w  rE\        V3R  lV 4       4      SP                  V4      r$\        WERR7      pV! V4      p\        WERR7      pV! V4      p\        Wx4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   LTestRegularGridInterpolator.test_linear_and_slinear_close.<locals>.<genexpr>|   s     <VbjjmmVrV   linearr>   slinearN)rY   r   r
   r   )	r    points_valuesrF   r!   r"   r#   rG   rH   rI   s	   &&&f     r(   test_linear_and_slinear_close9TestRegularGridInterpolator.test_linear_and_slinear_closel   s`     'tR0<V<<bjj>P(IF^(	JF^r+   c                R  a V P                  S4      w  r#\        V3R  lV 4       4      pSP                  . R	O. R
O. RO.4      p\        W#RR7      p\	        \
        4      ;_uu_ 4        V! V^R7       RRR4       \        V! VRR7      SP                  . ROSP                  R7      RR7       \        V! VRR7      SP                  . ROSP                  R7      RR7       \        V! VRR7      SP                  . ROSP                  R7      RR7       R#   + '       g   i     L; i)c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   ?TestRegularGridInterpolator.test_derivatives.<locals>.<genexpr>   rU   rV   rb   r>   )nuNdtypeV瞯<atolg-=r?   rB   rD   )   r   r   r   )r   ro   ro   )r   ro   r   r   )r/   
   rp   )r   ro   ro   r   )r   r   r   )r)   rY   r   r
   assert_raisesr[   r   float64)r    r!   r"   r#   rF   rG   s   &f    r(   test_derivatives,TestRegularGridInterpolator.test_derivatives   s    ,,R04V445335 6 )	J:&&6a  ' 	v,7

;bjj
A	Ov,7

>
D5	R 	v,7

;bjj
A	O '&s   (DD&	c                  a VR 8X  d   \         P                  ! R4       V P                  S4      w  r4\        V3R lV 4       4      pVRV,          ,
          pSP	                  . RO. RO. R	O.4      p\        W4VR7      p\        VSP                  V4      VR7      p\        VSP                  V4      VR7      pV! V4      p	V! V4      RV! V4      ,          ,           p
\        W4       R# )
pchip*pchip does not make sense for complex datac              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   ;TestRegularGridInterpolator.test_complex.<locals>.<genexpr>   rU   rV                  @r>                 ?Nr?   rB   rD   )	rZ   skipr8   rY   r   r
   realimagr   )r    r   r!   r"   r#   rF   rG   rinterpiinterprH   rI   s   &&f        r(   test_complex(TestRegularGridInterpolator.test_complex   s    WKKDE..r24V44"V)#/1D/1 2 )G)&"''&/&Q)&"''&/&QF^V_r'&/11r+   c                R   VP                  . R
O4      VP                  . R
O4      r2VP                  W#RR7      w  rER ! WE4      p\        W#3VRR7      p\        W#3VRR7      pV! R^.4      p	V! R^.4      p
VP                  VP	                  W,
          4      R8  4      '       d   Q hR	# )ro   ij)indexingc                 0    V ^,          V^,          ,          # )    xys   &&r(   <lambda>ATestRegularGridInterpolator.test_cubic_vs_pchip.<locals>.<lambda>   s    q!tad{r+   cubicr>   rv   r4   +=N)ro         r   )r   meshgridr
   allabs)r    r!   r   r   xgygr#   r   rv   
vals_cubic
vals_pchips   &&         r(   test_cubic_vs_pchip/TestRegularGridInterpolator.test_cubic_vs_pchip   s    zz,'L)A1QD1*B3'wG'wGC8_
C8_
66"&&!89EABBBBBr+   c                   a V P                  S4      w  r#\        V3R  lV 4       4      p\        W#4      pSP                  . RO4      pSP                  R.SP                  R7      p\        V! V4      V4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   ?TestRegularGridInterpolator.test_linear_xi1d.<locals>.<genexpr>   rU   rV   H@rj   Nr@   r@   r/         "@r0   rY   r
   r   rr   r   r    r!   r"   r#   rG   rF   wanteds   &f     r(   test_linear_xi1d,TestRegularGridInterpolator.test_linear_xi1d   sd    ..r24V44(8/0VHBJJ7!&.&9r+   c                   a V P                  S4      w  r#\        V3R  lV 4       4      p\        W#4      pSP                  . RO. RO. RO.4      pSP                  . RO4      p\	        V! V4      V4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   ?TestRegularGridInterpolator.test_linear_xi3d.<locals>.<genexpr>   rU   rV   Nr?   rB   rD   r   gq@g     \@r)   rY   r
   r   r   r   s   &f     r(   test_linear_xi3d,TestRegularGridInterpolator.test_linear_xi3d   sh    ,,R04V44(8/1D/1 223!&.&9r+   zsample, wantedg     0@r        \@g     |@c                ,  a V P                  S4      w  rE\        ;QJ d    . V3R  lV 4       F  NK  	  5M! V3R  lV 4       4      SP                  V4      r\        WERR7      pSP                  V.SP                  R7      p\        V! V4      V4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   ;TestRegularGridInterpolator.test_nearest.<locals>.<genexpr>   s     =frzz!}}frV   nearestr>   rj   N)r)   tupler   r
   rr   r   )r    rF   r   r!   r"   r#   rG   s   &&&f   r(   test_nearest(TestRegularGridInterpolator.test_nearest   sr     ,,R0=f==f==rzz&?Q(	JVHBJJ7!&.&9r+   c                   a V P                  S4      w  r#\        V3R  lV 4       4      p\        W#4      pSP                  . RO. RO.4      pSP                  RR.4      p\	        V! V4      V4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   @TestRegularGridInterpolator.test_linear_edges.<locals>.<genexpr>   rU   rV   r   r   Nr   r   r   r   r   r   r   r   r   r   s   &f     r(   test_linear_edges-TestRegularGridInterpolator.test_linear_edges   sd    ,,R04V44(8-/?@ARK(!&.&9r+   c                   RR.p\         P                  ! . RO4      pVR\         P                  3,          pV\         P                  R3,          pW4^
,          ,           p\        \        \
        W4       RR.p\        \        \
        W4       RR.p\        \        \
        W4       . R	Op\        \        \
        W4       RR.p\        \        \
        WRR7       R# )
r   r   undefmethodr>   Nr   )r   r   r   )r   )r   r   g      ?r   )r   r   r   )r   r   r   rq   r[   r
   )r    r"   r#   r$   r%   s   &    r(   test_valid_create-TestRegularGridInterpolator.test_valid_create   s    -L)BJJ'Q'bL(j"96J"L1j"96J#\2j"96J;j"96J-j"96*	,r+   c                ^  a V P                  S4      w  r#\        V3R  lV 4       4      p\        W#4      pSP                  . RO. RO.4      p\	        \
        4      ;_uu_ 4        V! VR4       RRR4       SP                  . RO. RO.4      p\	        \
        4      ;_uu_ 4        V! V4       RRR4       SP                  . RO. RO.4      p\	        \
        4      ;_uu_ 4        V! V4       RRR4       R#   + '       g   i     L; i  + '       g   i     Ld; i  + '       g   i     R# ; i)c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   >TestRegularGridInterpolator.test_valid_call.<locals>.<genexpr>   rU   rV   r   Nr   r   )r   r   r   )r   r   r   )r   r   r   皙?)r)   rY   r
   r   rq   r[   )r    r!   r"   r#   rG   rF   s   &f    r(   test_valid_call+TestRegularGridInterpolator.test_valid_call   s    ,,R04V44(8-/?@A:&&6=) ' \<89:&&6N ' -/@AB:&&6N '& '& '& '&&s$   #
C5#	D"	D5D	D	D,	c                  a V P                  S4      w  r#\        V3R  lV 4       4      p\        W#RRR7      pSP                  . RO. R	O. R
O. RO.SP                  R7      pSP                  . ROSP                  R7      p\        V! VRR7      V4       SP                  . ROSP                  R7      p\        V! VRR7      V4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   HTestRegularGridInterpolator.test_out_of_bounds_extrap.<locals>.<genexpr>  rU   rV   FNbounds_error
fill_valuerj   r   r>   ra   皙r   r   r   r   r   r   r       @皙ir   r   r   r   )r   r         &@r   )gfffff[gfffff@g     g)r)   rY   r
   r   rr   r   r   s   &f     r(   test_out_of_bounds_extrap5TestRegularGridInterpolator.test_out_of_bounds_extrap  s    ,,R04V44(e48:13G13IK"$**  . 1D!&	"BFK>bjjQ!&"A6Jr+   c                  a V P                  S4      w  r#\        V3R  lV 4       4      p\        W#RRR7      pSP                  . RO. R	O. R
O. RO.SP                  R7      pSP                  . ROSP                  R7      p\        V! VRR7      V4       SP                  . ROSP                  R7      p\        V! VRR7      V4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   ITestRegularGridInterpolator.test_out_of_bounds_extrap2.<locals>.<genexpr>  rU   rV   FNr   rj   r   r>   ra   r   r   r   r   )r   r   r   r   )g333333(g33333`@g     gyXr   r   s   &f     r(   test_out_of_bounds_extrap26TestRegularGridInterpolator.test_out_of_bounds_extrap2  s    ..r24V44(e48:13G13IK"$**  . /rzzB!&	"BFK9L!&"A6Jr+   c                  a V P                  S4      w  r#\        V3R  lV 4       4      p\        W#RSP                  R7      pSP	                  . RO. RO. R	O.4      pSP	                  SP                  SP                  SP                  .4      p\        V! VRR7      V4       \        V! VRR7      V4       SP	                  . R
O. RO. RO.4      pSP	                  . RO4      p\        V! V4      V4       R# )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5irN   rO   rP   s   & r(   rS   FTestRegularGridInterpolator.test_out_of_bounds_fill.<locals>.<genexpr>  rU   rV   Fr   r   r>   ra   Nr   r   r   r?   rB   rD   r   )r)   rY   r
   nanr   r   r   s   &f     r(   test_out_of_bounds_fill3TestRegularGridInterpolator.test_out_of_bounds_fill  s    ,,R04V44(e46FF<13G35 6RVVRVVRVV45!&	"BFK!&"A6J/1D/1 223!&.&9r+   c                r   V P                  \        4      w  r\        WR R7      p\        P                  ! V!  pV Uu. uF  qUNK  	  pp\        P
                  ! V4      pVP                  R4      p\        WF4      p\        P
                  ! . RO. RO. RO.4      p\        V! V4      V! V4      4       R# u upi )r   r>   Nr?   rB   rD   )	r)   r   r
   	itertoolsproductr   reshaper   r   	r    r"   r#   rG   points_qhullrR   values_qhullinterp_qhullrF   s	   &        r(   test_nearest_compare_qhull6TestRegularGridInterpolator.test_nearest_compare_qhull,  s    ,,R0(	J ((&1#/0<a<0zz,/~~b),\H/1D/1 2!&.,v2FG 1s   
B4c                n   V P                  \        4      w  r\        W4      p\        P                  ! V!  pV Uu. uF  qUNK  	  pp\        P
                  ! V4      pVP                  R4      p\        WF4      p\        P
                  ! . RO. RO. RO.4      p\        V! V4      V! V4      4       R# u upi )ro   Nr   r?   rB   rD   )	r)   r   r
   r   r   r   r   r   r   r   s	   &        r(   test_linear_compare_qhull5TestRegularGridInterpolator.test_linear_compare_qhull8  s    ,,R0(8 ((&1#/0<a<0zz,/~~b)+LG/1D/1 2!&.,v2FG 1s   
B2r   ra   c                   \         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      p\        R4      p\        W#3WAR7      pV! RR.4      p\        W#3VP                  VR7      pV! RR.4      p\        WgRR7       R# )r   r>   皙?ffffff?Fcheck_dtypeN      )r   linspaceMyValuer
   _vr   )r    r   r   r   r#   rG   rH   rI   s   &&      r(   test_duck_typed_values2TestRegularGridInterpolator.test_duck_typed_valuesD  sw    KK1a KK1a (!GS#J(!6JS#JE2r+   c                4   \         P                  P                  R 4       \         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      p\         P                  P	                  ^^4      p\        W3V^R7       \        \        \
        W3VRR7       R# )  r   Ny      ?       @)r   randomseedr   randr
   rq   r[   )r    r   r   r#   s   &   r(   test_invalid_fill_value3TestRegularGridInterpolator.test_invalid_fill_valueR  sr    
		tKK1a KK1a 1% 	 1= 	j"9ff	7r+   c                    \         P                  ! RRR7      pVP                   Uu. uF  p\         P                  ! V4      NK  	  pp\	        W14       \	        W1RR7       R# u upi )rp   z>f4rj   r   r   Nrp         )r   onesshapearanger
   )r    r#   nr"   s   &   r(   test_fillvalue_type/TestRegularGridInterpolator.test_fillvalue_type_  sI    U3(.51"))A,5/2> 6s   A"rk   ndimc                   \         P                  ! W!R 7      p\        ;QJ d    . R V 4       F  NK  	  5M! R V 4       4      p\         P                  ! RVR 7      p\         P                  ! RV,          VR7      p\         P                  ! RVR 7      pVR8X  d   \         P
                  MTp	\        WWVRVR7      p
\        WWVRR7      p\         P                  ! V.4      p\         P                  ! V.V	R 7      pV
! V4      V! V4      3 F  p\        W4       K  	  V^ ;;,          ^,          uu&   \         P                  ! V.4      p\         P                  ! V.V	R 7      pV
! V4      p\        W4       \        P                  ! \        RR	7      ;_uu_ 4        V! V4       R
R
R
4       \         P                  V^ &   \         P                  ! V.4      p\         P                  ! \         P                  .V	R 7      pV
! V4      p\        W4       \        P                  ! \        RR	7      ;_uu_ 4        V! V4       R
R
R
4       R
#   + '       g   i     L; i  + '       g   i     R
# ; i)rj   c              3   P   "   T F  p\         P                  ! V.4      x  K  	  R # 5irN   )r   r   )rQ   xis   & r(   rS   GTestRegularGridInterpolator.test_length_one_axis_all.<locals>.<genexpr>u  s     5"Brzz2$''"s   $&)r
  r   ra   Fr   r   r   Tr   r   z9^One of the requested xi is out of bounds in dimension 0$rW   Ng$I$I?)ro   gaa?)r   r  r   r   fullrr   r
   r   rZ   r	   r[   r   )r    rk   r  r   x0r"   valr#   fillpromoted_dtypeinterp_fill
interp_errrF   r   results   &&&&           r(   test_length_one_axis_all4TestRegularGridInterpolator.test_length_one_axis_allg  s    YYt) 5"55"55 jjE*uTzc: zz$e, (.'9u .6$
 -6


 RD!SE8"6*Jv,>?FF+ @ 	1
RD!TF.9V$']]M
 
 v	
 1RD!RVVHN;V$']]M
 
 v	
 

 

 
 
s   	I0	II	I'	c           
     *   R  p\         P                  ! ^^^4      p\         P                  ! ^^
^
4      pV! \         P                  ! W#RRR7      !  p\        W#3VRR^eR7      p\	        V! \         P
                  ! ^^.^^.^^
..4      4      \         P                  ! . RO4      RR7       \	        V! \         P
                  ! ^R	.^R
.^^
..4      4      . RORR7       \	        V! \         P
                  ! RR.4      4      VP                  RRRRR7       RVn        \	        V! ^R.^R..4      RR.RR7       \	        V! RR.RR..4      RR.RR7       \        W#3VRRRR7      p\	        V! RR.RR..4      \         P                  ! R^.4      RR7       R# )c                     W,           # rN   r   r   s   &&r(   f;TestRegularGridInterpolator.test_length_one_axis.<locals>.f  s	    5Lr+   r   Tr   sparsera   Fr  r   rm   gffffff?333333@333333@r   )r   check_shapecheck_0drn   N333333?g      '@g?g      )@rl   r4   gffffff?r   g?gffffff@r7   )r5         )r'  333333@r,  )r   r   r   r
   r   arrayr   r   )r    r"  r   r   datarG   s   &     r(   test_length_one_axis0TestRegularGridInterpolator.test_length_one_axis  s   	KK1a KK2r""++aT$?@(!h6;M 	rxx!Q!Q!R(ABC

<0"	$
 	rxx!SAs8aW(EFG&"	$
 	rxxc
34))$)uu"	$ !C1d)45d%	1 	c
S$K89d%	1 )!i6;Nc
RI67

C8,"	$r+   r   Nc                   R VRRRV/p\         P                  ! ^ ^\         P                  ,          ^4      p\         P                  ! V4      p\	        V3VR,          3/ VB p\	        V^ .3VR,          3/ VB p\         P                  ! R^\         P                  ,          ^,           ^d4      pV! V4      p	\         P
                  ! ^d4      p
V! \         P                  ! W.4      P                  4      p\        W4       \         P                  ! ^d4      p
V! \         P                  ! W.4      P                  4      pVf   \        W4       R# \        V\         P                  ! W4      4       R# )r   r   Fr   r   Nr   Nr   )r   r   pisinr
   zerosvstackTr   r	  	full_like)r    r   r   optionsr   zfafbx1azay1bzbs   &&&         r(   test_length_one_axis21TestRegularGridInterpolator.test_length_one_axis2  s     ^UV% KK1RUU7B'FF1I$aT1Q4;7;$a!XqzEWEkk"agai-W hhsm		3*%''( ggcl		3*%''(B#BR <=r+   c                   \        . R	O3. R
O^RVR7      p\        P                  ! V! \        P                  .4      4      '       g   Q h\        P                  P                  R4      pVP	                  ^dR7      ^,          pVP	                  ^dR7      R8  p\        P                  WE&   \        P                  ! RR7      ;_uu_ 4        V! V4      pRRR4       \        P                  ! XV,          4      P                  4       '       g   Q h\        We( ,          V! WE( ,          4      4       . R	Op^.p\        P                  ! R4      p\        WG3V^RVR7      p\        P                  ! \        P                  ! V! \        P                  ^.4      4      4      '       g   Q h\        P                  ! \        P                  ! V! ^\        P                  .4      4      4      '       g   Q hR#   + '       g   i     EL$; i)ro   F)r   r   r      lJ sizer   ignoreinvalidNro   r   r   r  )r   ro   )
r
   r   isnanr   r   default_rngerrstater   r   r	  )	r    r   r"  rngr   iresr   r0  s	   &&       r(   test_nan_x_1d)TestRegularGridInterpolator.test_nan_x_1d  sr    $YL,116vGxx266($$$$ ii##J/JJCJ "JJCJ 3&vv[[**
 A$C + xxA##%%%%B1R5* Ewwv#QFDQ16vGvvbhhq"&&!~.////vvbhhq!RVV~.////# +**s   	G++G<	c                   \         P                  ! . RO4      \         P                  ! . RO4      r2R p\         P                  ! W#RRR7      w  rVV! WV4      p\        W#3VVRR7      p\         P                  ! RR7      ;_uu_ 4        V! R	\         P
                  .^^..4      p	R
R
R
4       \        X	^,          RRR7       \         P                  ! V	^ ,          4      '       g   Q h\         P                  P                  R4      p
V
P                  ^dR7      ^,          ^,
          pV
P                  ^dR7      ^,          pV
P                  ^dR7      R8  pV
P                  ^dR7      R8  pW,          p\         P
                  W+&   \         P
                  W<&   \         P                  ! W#.4      P                  p\         P                  ! RR7      ;_uu_ 4        V! V4      p	R
R
R
4       \         P                  ! W,          4      P                  4       '       g   Q h\        W( ,          V! W( ,          4      RR7       R
#   + '       g   i     EL; i  + '       g   i     Lz; i)r   c                 0    V ^,          V^,          ,           # r   r   r   s   &&r(   r"  4TestRegularGridInterpolator.test_nan_x_2d.<locals>.f  s    a4!Q$;r+   r   Tr$  Fr  rI  rJ  r4   Nr5   r   rm   rF  rG  r   r   )r   ro   r   )ro   r   r   )r   r/  r   r
   rO  r   r   rM  r   rN  r9  r   r   )r    r   r   r   r"  r   r   r0  rG   rR  rP  i1i2rQ  r<  s   &&             r(   test_nan_x_2d)TestRegularGridInterpolator.test_nan_x_2d  s   xx	"BHHY$71	 QD>y(!06UL [[**3-!Q01C +A%0xxA ii##J/JJCJ "1$JJCJ "ZZSZ!C'ZZSZ!C'GHHaV[[**
 )C + xx##%%%%B"EB/ +** +*s   H9	I9I
	I	c                L    ^V ^,          ,          ^V^,          ,          ,           # rW  r   r   s   &&r(   r   $TestRegularGridInterpolator.<lambda>6  s    Q!Va!q&j0r+   c                Z    ^V ^,          ,          ^V^,          ,          ,           V,
          # rW  r   )r   r   r<  s   &&&r(   r   r^  7  s    AQJQ!V3a7r+   c                h    ^V ^,          ,          ^V^,          ,          ,           V,
          V,           # rW  r   r   r   r<  as   &&&&r(   r   r^  8  s#    q16zAQJ6:Q>r+   c                t    ^V ^,          ,          ^V^,          ,          ,           V,
          W4,          ,           # rW  r   )r   r   r<  rb  bs   &&&&&r(   r   r^  9  s%    !a1f*q16z"9A"="Er+   c           	     D   V^8  d   VR	9   d   \         P                  ! R4       \        P                  P	                  ^*4      p^p^pVP                  WV^V3R7      p\        V4       Uu. uF  p\        P                  ! WV^4      NK  	  p	pV! \        P                  ! V	RRRR/ !  p
\        V	V
VR7      pV! V4      pV	 Uu. uF  qRRR
1,          NK  	  ppV! \        P                  ! VRRRR/ !  p\        VVVR7      pV! V4      p\        VV4       R# u upi u upi )r   z-too slow; OOM (quintic); or nearly so (cubic)rG  r   r   r%  Tr>   N>   r   quinticr   )rZ   r|   r   r   rN  uniformranger   r   r
   r   )r    r   ndimsfuncrP  
sample_lowsample_hightest_points_ascending_pointsascending_valuesascending_interpascending_resultr  descending_pointsdescending_valuesdescending_interpdescending_results   &&&&              r(   test_descending_points_nd5TestRegularGridInterpolator.test_descending_points_nd3  sW    A:&$88KKGHii##B'
kk*E
kK &+5\3%1 KK
D%1 	 3  .> ":6:":48": ; 33C3C:@B ,K80@A0@""XX0@A "++/@ #;7;#;59#; < 44E4E;AC .k:(*;<+3 Bs   * DDc           	     F   R  p\         P                  ! . RO4      p\         P                  ! . R	O4      pW#3pV! \         P                  ! VRRRR/ !  pRp\        P                  ! \
        VR7      ;_uu_ 4        \        WE4       RRR4       R#   + '       g   i     R# ; i)
c                 L    ^V ^,          ,          ^V^,          ,          ,           # rW  r   r   s   &&r(   val_func_2dJTestRegularGridInterpolator.test_invalid_points_order.<locals>.val_func_2d]  s    qAv:AF
**r+   r   r   r%  T(must be strictly ascending or descendingrW   Nr   r5   r         @      @r   r5   r7   r  r  )r   r/  r   rZ   r	   r[   r
   )r    r{  r   r   r"   r#   rX   s   &      r(   test_invalid_points_order5TestRegularGridInterpolator.test_invalid_points_order\  s    	+ HH*+HH*+bkk6 7D 7157 8:]]:U33#F3 4333s   9BB 	c                    \        \        P                  ! ^4      .\        P                  ! ^4      VRR7      p\        P                  ! V! ^
.4      4      '       g   Q hR# )r+  Fr  N)r
   r   r  r	  rM  )r    r   rG   s   && r(   test_fill_value+TestRegularGridInterpolator.test_fill_valuei  sC    ("))A,06ULxxt%%%%r+   c                >   VR 8X  d   \         P                  ! R4       R	.^,          R
.^,          ,           p\        P                  P	                  R4      pVP                  R4      pVP                  R4      p\        W$VRR7      pV! V4      pVP                  R8X  g   Q V4       h. p\        ^4       F1  p	\        W$RV	3,          VRR7      pVP                  V! V4      4       K3  	  \        P                  ! V4      P                  ^^^ 4      p
\        WzRVR7       R# rf  Way too slow.r   Fr  .r   rn   err_msgNr   r   r   r4   r5   r6   )r   r.   r/         .@r        9@)r+  r+  r+  r+     )r   r   r   )r   r   r  )rZ   r|   r   r   rN  r
   r
  rh  appendr/  	transposer   )r    r   r"   rP  r#   rF   rG   vvsjrI   s   &&         r(   test_nonscalar_values1TestRegularGridInterpolator.test_nonscalar_valueso  s	    YKK( 11A5,9
9  ii##D)O,I&(6;=6Nww)#+V+#qA,VCF^4::?AF IIfVn%	 
 XXb\##Aq!,E6:r+   flip_pointsFTc           	        VR
9   d   \         P                  ! R4       . ROpV'       d$   V Uu. uF  p\        \        V4      4      NK  	  pp\        P
                  P                  R4      pRpVP                  . ROVO54      pVP                  ^4      p\        W7VRR7      p	V	! V4      p
V
P                  ^.VO58X  g   Q h\        P                  ! VP                  RR 4      p\        VP                  R,          4       FW  p\        VP                  R,          4       F4  p\        W7RW3,          VRR7      p	V	! V4      P                  4       WV3&   K6  	  KY  	  \        P                  ! V^ R7      p\        WRVR	7       R# u upi )r   r  r   Fr  N.axisr   r  >   r   rf  r  r3   )r   r.   r/   r  r  r       A@      B@)	r   r.   r/   r  r  r  r  r  /   r   r   r+  r   r  	   r   )rZ   r|   r   reversedr   r   rN  r
   r
  emptyrh  itemexpand_dimsr   )r    r   r  r"   rR   rP  trailing_pointsr#   rF   rG   r  r  rQ  r  rI   s   &&&            r(   test_nonscalar_values_23TestRegularGridInterpolator.test_nonscalar_values_2  sW    ))KK(D 289&QeHQK(&F9ii##D) :/:;A(6;=6N ww1///// XXfll23'(v||B'(A6<<+,0Q	9J8>>CE "&>..0a4	 - ) ^^BQ'E6:3 :s   Fc           	     |   R pR	R
.p\         P                  P                  R4      pRpVP                  ^^.VO54      pVP                  ^4      p\        W%VRR7      pV! V4      pVP                  ^.VO58X  g   Q h\         P
                  ! VP                  RR 4      p	\        VP                  R,          4       FW  p
\        VP                  R,          4       F4  p\        W%RW3,          VRR7      pV! V4      P                  4       WV3&   K6  	  KY  	  \         P                  ! V	^ R7      p\        WRVR7       R# )ra   r   Fr  N.r  r   r  r  r3   )r   r   r  r   )
r   r   rN  r
   r
  r  rh  r  r  r   )r    r   r"   rP  r  r#   rF   rG   r  r  rQ  r  rI   s   &            r(   test_nonscalar_values_linear_2D;TestRegularGridInterpolator.test_nonscalar_values_linear_2D  s)   059 ii##D) Q4O45A(6;=6N ww1///// XXfll23'(v||B'(A6<<+,0Q	9J8>>CE "&>..0a4	 - ) ^^BQ'E6:r+   xi_dtypec                Z   R  p\         P                  ! ^^^4      p\         P                  ! ^^^4      p\         P                  ! WERRR7      w  rgV! Wg4      pVP                  V4      p\	        WE3V4      p	\         P
                  ! RR.RR..VR7      p
\        V	! V
4      R	R
.RRRR7       R# )c                 L    ^V ^,          ,          ^V^,          ,          ,           # rW  r   r   s   &&r(   r"  :TestRegularGridInterpolator.test_float32_values.<locals>.f  s    q!t8a!Q$h&&r+   r   Tr$  r   g@ffffff
@g@rj   g Y`@g{,c@gHz>F)rn   rtolr   N)r   r   r   astyper
   r/  r   )r    rk   r  r"  r   r   r   r   r0  rG   ptss   &&&        r(   test_float32_values/TestRegularGridInterpolator.test_float32_values  s    	' KK1b!KK1b!QD>y{{5!(!6hhc
c
$+35 	slL%A!%	Ar+   c           
        \         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      p\         P                  ! WRRR7      w  r4W4,           p\        \        4      ;_uu_ 4        \        W3VR R7       RRR4       \        \        4      ;_uu_ 4        \        W3VRR R	7       RRR4       \        \        4      ;_uu_ 4        \        W3VRR
 RR7       RRR4       \        \        4      ;_uu_ 4        \        W3VRR^*/R7       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lj; i  + '       g   i     R# ; i)r   r   Tr$  c                     V # rN   r   r   s   &r(   r   =TestRegularGridInterpolator.test_bad_solver.<locals>.<lambda>  s    1r+   )solverNrb   c                     V # rN   r   r  s   &r(   r   r        r+   )r   r  c                     V # rN   r   r  s   &r(   r   r    r  r+   woof)r   r  r  )r   solver_args)r   r   r   rq   r[   r
   	TypeError)r    r   r   r   r   r0  s   &     r(   test_bad_solver+TestRegularGridInterpolator.test_bad_solver  s    KK1a KK1a QD>w :&&#QFDE ' 9%%#Y{ & 9%%#Y{ & 9%%#Yfb\ &% '& &% &% &%%s0   +DD.E>ED+	.D>	E	E%	c                   aa V P                  \        4      w  r\        P                  ! . RO. RO. RO. R	O.4      o\        WRR7      pRR.oVV3R lp\	        ^
WC4       R# )
r@   rb   r>   r   c                 x   < VP                   pSV ^,          ,          pV! SVR7       VP                   VJ g   Q hR# )r   r>   N)_spline)tidrG   spliner   methodsrF   s   &&  r(   	worker_fn?TestRegularGridInterpolator.test_concurrency.<locals>.worker_fn  s6    ^^FS1W%F6&)>>V+++r+   Nr?   rB   rD   )r*  r@   rC   r   )r)   r   r/  r
   r   )r    r"   r#   rG   r  r  rF   s   &    @@r(   test_concurrency,TestRegularGridInterpolator.test_concurrency  s_    ,,R033335 6 )	J i(	, 	 I6r+   r   )r   rf  rv   r?   rB   rD   r   )r@   r@   rA   rA   )r@   r@   r@   r@   r   r   )r@   r   g333333?rA   rL  )ri  rj  )9__name__
__module____qualname____firstlineno__r)   r0   r8   r;   parametrize_rgi_interp_methodsrJ   rZ   markparametrizer\   r   r   rd   rs   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  float32rr   r  r1  r   r5  rC  rS  r[  	fail_slowrw  r  r  r  r  r  	complex64
complex128r  r  r  __static_attributes____classdictcell____classdict__s   @r(   r   r      s    				 $  $   [[X'DE* F*  [[ 

%&%' rzz*?@A
	
  O* $  $ "C:: [[!6*!3'!3'!6*!6*	
	:	::,$ KK:
H
H [[X	8'<=3 >37? [[Wrzz2::&>?[[VY/[[X)'<=; > 0 @;z*$X [[\D"&&"%%+@A[[X)'<=> > B>4 [[X	8'<=0 >0< [[X	8'<="C >"CH [[2#[[.	
01	
78	
>?	
EF	1 = $ =B4 $& $&
 [[1#; $ ;: $[[]UDM:'; ; $';R;> [[	RZZr}}= [[Z"**bjj)ABA C	
A087 7r+   r   c                   @   a  ] tR tRt o RtR tR tR tR	R ltRt	V t
R# )
r   i%  z
Minimal indexable object
c                    ^V n         Wn        \        P                  ! \        P                  ! V4      4      P                  V4      V n        R# )r   N)r  r
  r   r  prodr   r   )r    r
  s   &&r(   __init__MyValue.__init__*  s1    	
))BGGEN+33E:r+   c                (    V P                   V,          # rN   )r   )r    idxs   &&r(   __getitem__MyValue.__getitem__/  s    wws|r+   c                    R # rN   r   )r    s   &r(   __array_interface__MyValue.__array_interface__2  s    r+   Nc                    \        R 4      h)zNo array representation)RuntimeError)r    rk   copys   &&&r(   	__array__MyValue.__array__5  s    455r+   )r   r  r
  )NN)r  r  r  r  __doc__r  r  r  r  r  r  r  s   @r(   r   r   %  s#     ;
6 6r+   r   c                     a  ] tR tRt o R tR t]R 4       tR tR t	R t
R tR	 tR
 tR tR t]R 4       t]P$                  P'                  ^4      ]R 4       4       t]R 4       tR t]R 4       tR tR t]P$                  P5                  RRR.4      R 4       t]]R 4       4       tR tR tR t R t!R t"R t#R t$]P$                  P5                  R R!R".4      R# 4       t%R$t&V t'R%# )&TestInterpNi9  c           	         \         P                  ! . RO4      p\         P                  ! . RO4      p\         P                  ! . RO. RO. RO. RO. RO. RO.4      pWV3# )r   )r   r5   r7   r  r  g      @)ro   r   ro   r   ro   ro   )ro   r   r   r   ro   ro   )ro   r   r   r   ro   ro   )r   r/  )r    r   r   r<  s   &   r(   _sample_2d_dataTestInterpN._sample_2d_data:  sP    HH./HH./HH""""""	
 Qwr+   c           	         V P                  4       w  rp\        WV4      p\        P                  ! . RO. RO.4      P                  p\        \        W3W5RR7      VP                  VR,          VR,          4      4       R# )ro   	splinef2dr>   Nro   ffffff@r&  r   r  333333?r   ro   r  r  r  r.   r   r   r   r   r   ro   )r  r   r   r/  r9  r   r   ev)r    r   r   r<  lutr  s   &     r(   test_spline_2dTestInterpN.test_spline_2dI  sl    &&(a!!*XX668 99: 	!'1&!"L"%&&D2d8"<	>r+   c                B   V P                  4       w  r#p\        P                  ! . RO. RO.4      P                  p\	        W#3WEVR7      p\	        VP                  4       VP                  4       3VP                  4       VP                  4       VR7      p\        WgVR7       R# )ro   r>   )r  Nr  r  )r  r   r/  r9  r   rE   r   )r    r   r   r   r<  r  rH   rI   s   &&      r(   rJ   TestInterpN.test_list_inputR  s    &&(aXX668 99: 	aVQ62XXZ$ahhj"))+f
 	/r+   c                   \         P                  ! . RO4      p\         P                  ! . RO4      p\         P                  ! . RO. RO. R	O. R
O. RO.4      p\        WV4      p\         P                  ! . RO. RO.4      P                  p\	        W3W5RRRR7      pVP                  VR,          VR,          4      pRVR&   \        Wg4       \        \        \        W3W5RRRR7       R# )r   r  FR?@r  :r   r   NNr  ro   r   ro   r   ro   ro   r   r   r   ro   ro   r   r   r   ro   ro   r  r-  r   r  r  r   ro   r  r  g      r.   r   r   r  r  )	r   r/  r   r9  r   r  r   rq   r[   )r    r   r   r<  r  r  actualexpecteds   &       r(   test_spline_2d_outofbounds&TestInterpN.test_spline_2d_outofbounds]  s    HH*+HH*+HHo%8 9!!*XX679 ::;! 	!{&+@66"T(BtH-!&3 	j'A61#(T	;r+   c                x   R.^,          R.^,          ,           p\         P                  ! . RO4      pVR\         P                  \         P                  \         P                  3,          pV\         P                  R\         P                  \         P                  3,          pV\         P                  \         P                  R\         P                  3,          pV\         P                  \         P                  \         P                  R3,          pW4^
,          ,           V^d,          ,           VR,          ,           pW3# r-   )r   r   r   )r    r"   r#   r$   r%   r&   r'   s   &      r(   _sample_4d_dataTestInterpN._sample_4d_datap  s    !#}o&99L)BJJ

BJJ>?Q

BJJ>?RZZBJJ>?RZZQ>?bL(7S=87T>I~r+   c                    V P                  4       w  r\        W4      p\        P                  ! . RO.4      p\	        WVRR7      p\        V! V4      V4       R# )r@   ra   r>   Nr   r  r
   r   r   r   r   r    r"   r#   	interp_rgrF   r   s   &     r(   test_linear_4dTestInterpN.test_linear_4dz  sK    --/+F;	012A!)F"3V<r+   c           	         V P                  4       w  r\        P                  ! . RO.4      p\        P                  ! R.4      p\        WVRRRR7      p\	        WT4       R# )r@   r  ra   Fr  Nr@   r   g333333$@r   r  r   r   r   r   r    r"   r#   rF   r   r	  s   &     r(   test_4d_linear_outofbounds&TestInterpN.test_4d_linear_outofbounds  sR    --/234VH%&+@!&1r+   c                    V P                  4       w  r\        WR R7      p\        P                  ! . RO.4      p\	        WVR R7      p\        V! V4      V4       R# )r   r>   Nr   r  r  s   &     r(   test_nearest_4dTestInterpN.test_nearest_4d  sM    --/+F9M	012	B!)F"3V<r+   c           	         V P                  4       w  r\        P                  ! . RO.4      p\        P                  ! R.4      p\        WVRRRR7      p\	        WT4       R# )r@   r  r   Fr  Nr  r  r  s   &     r(   test_4d_nearest_outofbounds'TestInterpN.test_4d_nearest_outofbounds  sR    --/234VH%	&+@!&1r+   c                    V P                  4       w  r\        P                  ! . RO4      p\        WVRR7      p\        WVR,          RR7      p\	        WE4       R# )r@   F)r   Nr   Nr   )r  r   r   r   r   r    r"   r#   rF   rH   rI   s   &     r(   
test_xi_1dTestInterpN.test_xi_1d  sI    --//0VV%@VVF^%Hr+   c                t   V P                  4       w  r\        P                  P                  R 4       \        P                  P	                  ^^^4      p\        WVRRR7      pVP                  R8X  g   Q h\        WVP                  R^4      RRR7      p\        WEP                  VP                  4      4       R# )r   r   Fr  Nr   r   r   )	r  r   r   r  r  r   r
  r   r   r$  s   &     r(   
test_xi_ndTestInterpN.test_xi_nd  s    --/
		t1a(VVI"')xx6!!!VV^^B%:%E;JJrxx01r+   c                    V P                  4       w  r#pW#3p\        P                  ! ^ ^^4      p\        P                  ! ^ ^^4      pVR,          VR,          3p\        WTWRR7      p	V	P                  R8X  g   Q h\        P
                  ! Wg4      w  r\        P                  V
P                  P                  4       VP                  P                  4       3,          p\        WTVVRR7      p\        WP                  V	P                  4      4       R# )r   NFr  r4  r#  r(  )r  r   r   r   r
  r   c_r9  ravelr   r   )r    r   r   r   r#   r"   r  yirF   rH   xxyyrI   s   &&           r(   test_xi_broadcastTestInterpN.test_xi_broadcast  s     ++-f[[Aq![[Aq!W+r'{+VVOxx6!!!R$rttzz|RTTZZ\12VV"8JJrxx01r+   c                   VR 8X  d   \         P                  ! R4       R	.^,          R
.^,          ,           p\        P                  P	                  R4      pVP                  R4      pVP                  R4      p\        W$WQRR7      pVP                  R8X  g   Q V4       h\        ^4       Uu. uF  p\        W$RV3,          WQRR7      NK  	  pp\        P                  ! V4      P                  ^^^ 4      p	\        WiRVR7       R# u upi r  )rZ   r|   r   r   rN  r   r
  rh  r/  r  r   )
r    r   r"   rP  r#   rF   r  r  r  rI   s
   &&        r(   r  !TestInterpN.test_nonscalar_values  s     YKK( 11A5,9
9  ii##D)O,I&FF!&(ww)#+V+# 498=3;a fS!Vnf#(*3; 	 =XXb\##Aq!,E6:	=s   + Dc                j   VR	9   d   \         P                  ! R4       . R
Op\        P                  P	                  R4      pRpVP                  . ROVO54      pVP                  ^4      p\        W%WaRR7      pVP                  ^.VO58X  g   Q h\        VP                  R,          4       UU	u. uFD  p\        VP                  R,          4       U	u. uF  p	\        W%RW3,          WaRR7      NK  	  up	NKF  	  p
pp	\        V\        P                  ! V
4      P                  RVR7       R# u up	i u up	pi )r   r  r   Fr  .r   r  N>   r   rf  r  r  r  r   r  )rZ   r|   r   r   rN  r   r
  rh  r   r   r9  )r    r   r"   rP  r  r#   rF   r  r  rQ  r  s   &&         r(   r  #TestInterpN.test_nonscalar_values_2  s    ))KK(D
 ii##D) :/:;AFFN ww1///// v||B/02 1A 6;6<<;K5L5L sAy 16%*,5L 1 	 2
 	2::b>++%H 2s   .#D/ D*1D/*D/c           	         V P                  4       w  r\        P                  P                  R 4       \        P                  P	                  ^^^^^4      p\        P                  P	                  ^^^4      p\        \        \        WVRR7       R# )r   r  r>   N)r  r   r   r  r  rq   r[   r   )r    r"   r#   rF   s   &   r(    test_non_scalar_values_splinef2d,TestInterpN.test_non_scalar_values_splinef2d  se    --/
		t1aA.2q)j'66(	*r+   c                   VR 8X  d   \         P                  ! R4       V P                  4       w  r#pW#3pVRV,          ,
          p\        P                  ! . RO. RO.4      P
                  p\        WTWaR7      p\        WTP                  WaR7      p\        WTP                  WaR7      p	VRV	,          ,           p
\        Wz4       R# )rv   rw   rz   r>   r{   Nr  r  )
rZ   r|   r  r   r/  r9  r   r}   r~   r   )r    r   r   r   r#   r"   rF   rH   v2rv2irI   s   &&         r(   r   TestInterpN.test_complex  s    WKKDE++-f"V)#::< ==>Q 	 VV;fkk6Afkk6A2c6\r+   c           	     <   V P                  4       w  rpW3pVR V,          ,
          p\        P                  ! . RO. RO.4      P                  p\        P
                  ! \        RR7      ;_uu_ 4        \        WCVRR7       RRR4       R#   + '       g   i     R# ; i)rz   r}   rW   rv   r>   Nr  r  )r  r   r/  r9  rZ   r	   r[   r   r    r   r   r#   r"   rF   s   &     r(   test_complex_pchipTestInterpN.test_complex_pchip  sv    ++-f"V)#::< ==>Q 	]]:V44FF7; 5444s   1B

B	c           	     8   V P                  4       w  rpW3pVR V,          ,
          p\        P                  ! . RO. RO.4      P                  p\        P
                  ! \        4      ;_uu_ 4        \        WCVRR7       RRR4       R#   + '       g   i     R# ; i)rz   r  r>   Nr  r  )r  r   r/  r9  rZ   warnsr   r   r?  s   &     r(   test_complex_spline2fd"TestInterpN.test_complex_spline2fd*  st    ++-f"V)#::< ==>Q 	\\.))FF;? *)))s   /BB	r   ra   r   c                    \         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      p\        R4      p\        W#3VRR.VR7      p\        W#3VP                  RR.VR7      p\        WVRR7       R# )r   r   r   r>   Fr   Nr   )r   r   r   r   r   r   )r    r   r   r   r#   rH   rI   s   &&     r(   r   "TestInterpN.test_duck_typed_values5  sk    
 KK1a KK1a aVVc3Z?aVVYYc
6BE2r+   c                   \         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      p\        \         P                  P	                  ^^4      4      p\         P                  P	                  ^^^4      p\        W#3WEVR7      p\        W#3\         P                  ! V4      WQR7      pVR8X  d   \        WgRRR7       R# \        Wg4       R# )z8np.matrix inputs are allowed for backwards compatibilityr>   rf  g-C6
?g>)rn   r  N)r   r   r   r   r  r   r   r   )r    r   r   r   r#   rF   rH   rI   s   &&      r(   test_matrix_inputTestInterpN.test_matrix_inputC  s     KK1a KK1a 		q!,-1a(aVVF;aVRZZ/GYBD9B#r+   c                :   \         P                  ! . RO.4      p\         P                  ! ^R.^R.^R..4      p\        ^.. RO3W4      p. ROp\        W4RR7       \         P                  ! RR.RR.RR..4      p\        ^.. RO3WRR	R
7      p\        W4RR7       R	# )r@   g@g	@gffffff@rl   rm   r   r4   FNr   )r@   ro   rp   )r   r   r   )gQ?gffffff@gffffff @gffffff)r   r/  r   r   )r    r#   r  rR  r   s   &    r(   r1   TestInterpN.test_length_one_axisV  s    
 <.)XX3x!SAs845sI&3 	%0 XXSzC:c{;<sI&#(T; 	%0r+   c           	        R  p\         P                  ! . RO4      p\         P                  ! . R	O4      p\         P                  ! . R	O4      p\         P                  ! . R
O4      pW#WE3pV! \         P                  ! VRRRR/ !  pRR\         P                  ! \         P                  ! ^ ^^4      4      \         P                  ! ^ R^4      3p\        WgV4      p	VRRR1,          p
VRRR1,          pVRRR1,          pVRRR1,          pWW3pV! \         P                  ! VRRRR/ !  p\        WV4      p\        V	V4       R# )c                 h    ^V ^,          ,          ^V^,          ,          ,           V,
          V,
          # rW  r   ra  s   &&&&r(   value_func_4d9TestInterpN.test_descending_points.<locals>.value_func_4dm  s'    qAv:AF
*Q.22r+   r@   r*  r   r   r%  TN)r   ro   r   r   )r   rp   r  r  )r   r@   rC   r*  r   )r   r/  r   r  r   r   r   )r    rO  x1x2x3x4r"   r#   r  correct_result
x1_descend
x2_descend
x3_descend
x4_descendpoints_shuffledvalues_shuffledtest_results   &                r(   test_descending_points"TestInterpN.test_descending_pointsl  s!   	3 XXl#XXo&XXo&XX&'"![[&=4==?Cbkk!R&;<{{1c1%' 5"X
"X
"X
"X
%:J'[[/FDFFHoD4r+   c                   \         P                  ! . RO4      p\         P                  ! . RO4      p\         P                  ! . RO. RO. RO. RO. RO.4      p\         P                  ! . R	O. R
O.4      P                  pRp\        P                  ! \
        VR7      ;_uu_ 4        \        W3W44       RRR4       R#   + '       g   i     R# ; i)r   r}  rW   Nr~  r  r  r  r  r  r  )r   r/  r9  rZ   r	   r[   r   )r    r   r   r<  r  rX   s   &     r(   r  %TestInterpN.test_invalid_points_order  s    HH*+HH*+HHo%8 9XX679 ::;! 	 ;]]:U33QFA" 4333s   "B::C	c                    R.p^ ^.p\         P                  ! R4      pRp\        \        VR7      ;_uu_ 4        \	        WV4       RRR4       R#   + '       g   i     R# ; i)r   zaThe requested sample points xi have dimension 3, but this RegularGridInterpolator has dimension 1rW   N)r   ro   )ro   ro   r   )r   r	  rq   r[   r   )r    r"   r#   r  msgs   &    r(   test_invalid_xi_dimensions&TestInterpN.test_invalid_xi_dimensions  sM    QWWY9:S11FB' 2111s   AA!	c                   \         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      pWV3p\         P                  ! R4      p\         P                  ! . RO4      pV F  pRVP                  n        K  	  RVP                  n        RVP                  n        \        WEV4       \        WE4      ! V4       R# )r   FNr   r+  r   Gz@(\@gffffff?r   r   r	  r/  flags	writeabler   r
   )r    r   r   r<  r"   r#   pointds   &       r(   test_readonly_gridTestInterpN.test_readonly_grid  s    KK1a KK1a KK1a #+,A %AGG !& %&/6r+   c                z   \         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      pW3p\         P                  ! R4      p\         P                  ! RR.4      pV F  pRVP                  n        K  	  RVP                  n        RVP                  n        \        W4V4       \        W44      ! V4       R# )r   rh  ri  FNr   r+  rj  )r    r   r   r"   r#   rm  rn  s   &      r(   test_2d_readonly_grid!TestInterpN.test_2d_readonly_grid  s     KK1a KK1a $&A %AGG !& %&/6r+   c                   \         P                  ! ^ ^^4      p\         P                  ! V\         P                  ! V4      34      P                  P                  4       R,          pVP                  P                  '       d   Q h\         P                  ! ^ ^^4      p\         P                  ! ^ ^^4      pWV3p\         P                  ! R4      p\         P                  ! . RO4      p\        WEV4       \        WE4      ! V4       R# )r   Nr  rf  rg  )r   r   r8  
empty_liker9  r  rk  c_contiguousr	  r/  r   r
   )r    r   r   r<  r"   r#   rm  s   &      r(   test_non_c_contiguous_grid&TestInterpN.test_non_c_contiguous_grid  s    KK1a IIq"--*+,..335d;77'''''KK1a KK1a #+,&/6r+   rk   z>f8z<f8c                   \         P                  ! ^ ^^VR7      p\         P                  ! ^ ^^VR7      pW#3p\         P                  ! RVR7      p\         P                  ! RR.VR7      p\	        WEV4       \        WE4      ! V4       R# )r   rj   rh  ri  Nrr  )r   r   r	  r/  r   r
   )r    rk   r   r   r"   r#   rm  s   &&     r(   test_endiannessTestInterpN.test_endianness  sn     KK1au-KK1au-u-$U3&/6r+   r   N)(r  r  r  r  r  r  r  rJ   r  r  r  r  r  r   r%  r)  r1  rZ   r  r  r  r  r8  r   r@  rD  r  r   r   rI  r1  r]  r  rc  ro  rs  rx  r{  r  r  r  s   @r(   r  r  9  s[    > $0 $0;&=2=2 2 $2 $2& [[1#; $ ;0 $I $I@* $  $ $	<	@ [[	93	3 #$ $ $"1,54
#(777 [[Wuen5	7 6	7r+   r  ) r   rZ   numpyr   numpy.exceptionsr   scipy._lib._array_apir   r   r   r   scipy.conftestr   r	   rq   scipy.interpolater
   r   r   r   r   scipy.sparse._sputilsr   scipy._lib._testutilsr   r  r  _ALL_METHODSr  r   r   r  r   r+   r(   <module>r     s       +  / *L L ) 9 "(!8!8%22"  *+E7 E7 ,E7P6 6(X7 X7r+   