+
    nDj/                     <   ^ 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Ht ^ RIHt ^ R	IHt ]P8                  P;                  R
]P<                  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)_regrid_ndbspline_call_like_bivariate)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   &&      Z/data/cameron/venvs/s3viz/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_36   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_4A   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皙?rB   r   ?皙?rB   g?g?r   r   r   r   )r:   r   r   r
   tolistr   )r"   r   r$   r%   sampleinterpv1v2s   &&      r*   test_list_input+TestRegularGridInterpolator.test_list_inputL   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@   NrA   rD   rF   )r=   listpytestr	   
ValueErrorr
   r   )r"   r   r#   r$   r%   rZ   rI   rH   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rP   rQ   rR   s   & r*   rU   LTestRegularGridInterpolator.test_linear_and_slinear_close.<locals>.<genexpr>~   s     <VbjjmmVrX   linearr@   slinearN)r[   r   r
   r   )	r"   points_valuesrH   r#   r$   r%   rI   rJ   rK   s	   &&&f     r*   test_linear_and_slinear_close9TestRegularGridInterpolator.test_linear_and_slinear_closen   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rP   rQ   rR   s   & r*   rU   ?TestRegularGridInterpolator.test_derivatives.<locals>.<genexpr>   rW   rX   rd   r@   )nuNdtypeV瞯<atolg-=rA   rD   rF   )   r   r   r   )r   rq   rq   )r   rq   r   r   )r1   
   rr   )r   rq   rq   r   )r   r   r   )r+   r[   r   r
   assert_raisesr]   r   float64)r"   r#   r$   r%   rH   rI   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rP   rQ   rR   s   & r*   rU   ;TestRegularGridInterpolator.test_complex.<locals>.<genexpr>   rW   rX                  @r@                 ?NrA   rD   rF   )	r\   skipr:   r[   r   r
   realimagr   )r"   r   r#   r$   r%   rH   rI   rinterpiinterprJ   rK   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	# )rq   ij)indexingc                 0    V ^,          V^,          ,          # )    xys   &&r*   <lambda>ATestRegularGridInterpolator.test_cubic_vs_pchip.<locals>.<lambda>   s    q!tad{r-   cubicr@   rx   r6   +=N)rq         r   )r   meshgridr
   allabs)r"   r#   r   r   xgygr%   r   rx   
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rP   rQ   rR   s   & r*   rU   ?TestRegularGridInterpolator.test_linear_xi1d.<locals>.<genexpr>   rW   rX   H@rl   NrB   rB   r1         "@r2   r[   r
   r   rt   r   r"   r#   r$   r%   rI   rH   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rP   rQ   rR   s   & r*   rU   ?TestRegularGridInterpolator.test_linear_xi3d.<locals>.<genexpr>   rW   rX   NrA   rD   rF   r   gq@g     \@r+   r[   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rP   rQ   rR   s   & r*   rU   ;TestRegularGridInterpolator.test_nearest.<locals>.<genexpr>   s     =frzz!}}frX   nearestr@   rl   N)r+   tupler   r
   rt   r   )r"   rH   r   r#   r$   r%   rI   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rP   rQ   rR   s   & r*   rU   @TestRegularGridInterpolator.test_linear_edges.<locals>.<genexpr>   rW   rX   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    rs   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rP   rQ   rR   s   & r*   rU   >TestRegularGridInterpolator.test_valid_call.<locals>.<genexpr>   rW   rX   r   Nr   r   )r   r   r   )r   r   r   )r   r   r   皙?)r+   r[   r
   r   rs   r]   )r"   r#   r$   r%   rI   rH   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rP   rQ   rR   s   & r*   rU   HTestRegularGridInterpolator.test_out_of_bounds_extrap.<locals>.<genexpr>  rW   rX   FNbounds_error
fill_valuerl   r   r@   rc   皙r   r   r   r   r   r   r       @皙ir   r   r   r   )r   r         &@r   )gfffff[gfffff@g     g)r+   r[   r
   r   rt   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rP   rQ   rR   s   & r*   rU   ITestRegularGridInterpolator.test_out_of_bounds_extrap2.<locals>.<genexpr>  rW   rX   FNr   rl   r   r@   rc   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rP   rQ   rR   s   & r*   rU   FTestRegularGridInterpolator.test_out_of_bounds_fill.<locals>.<genexpr>!  rW   rX   Fr   r   r@   rc   Nr   r   r   rA   rD   rF   r   )r+   r[   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@   NrA   rD   rF   )	r+   r   r
   	itertoolsproductr   reshaper   r   	r"   r$   r%   rI   points_qhullrT   values_qhullinterp_qhullrH   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 )rq   Nr   rA   rD   rF   )	r+   r   r
   r   r   r   r   r   r   r   s	   &        r*   test_linear_compare_qhull5TestRegularGridInterpolator.test_linear_compare_qhull:  s    ,,R0(8 ((&1#/0<a<0zz,/~~b)+LG/1D/1 2!&.,v2FG 1s   
B2r   rc   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%   rI   rJ   rK   s   &&      r*   test_duck_typed_values2TestRegularGridInterpolator.test_duck_typed_valuesF  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
   rs   r]   )r"   r   r   r%   s   &   r*   test_invalid_fill_value3TestRegularGridInterpolator.test_invalid_fill_valueT  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 )rr   z>f4rl   r   r  Nrr         )r   onesshapearanger
   )r"   r%   nr$   s   &   r*   test_fillvalue_type/TestRegularGridInterpolator.test_fillvalue_typea  sI    U3(.51"))A,5/2> 6s   A"rm   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)rl   c              3   P   "   T F  p\         P                  ! V.4      x  K  	  R # 5irP   )r   r   )rS   xis   & r*   rU   GTestRegularGridInterpolator.test_length_one_axis_all.<locals>.<genexpr>w  s     5"Brzz2$''"s   $&)r  r   rc   Fr   r   r   Tr   r   z9^One of the requested xi is out of bounds in dimension 0$rY   Ng$I$I?)rq   gaa?)r   r  r   r   fullrt   r
   r   r\   r	   r]   r   )r"   rm   r  r   x0r$   valr%   fillpromoted_dtypeinterp_fill
interp_errrH   r   results   &&&&           r*   test_length_one_axis_all4TestRegularGridInterpolator.test_length_one_axis_alli  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,           # rP   r   r   s   &&r*   f;TestRegularGridInterpolator.test_length_one_axis.<locals>.f  s	    5Lr-   r   Tr   sparserc   Fr  r   ro   gffffff?333333@333333@r   )r   check_shapecheck_0drp   N333333?g      '@g?g      )@rn   r6   gffffff?r   g?gffffff@r9   )r7         )r)  333333@r.  )r   r   r   r
   r   arrayr   r   )r"   r$  r   r   datarI   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)rq   F)r   r   r      lJ sizer   ignoreinvalidNrq   r   r   r  )r   rq   )
r
   r   isnanr   r  default_rngerrstater   r   r  )	r"   r   r$  rngr   iresr   r2  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  rK  rL  r6   Nr7   r   ro   rH  rI  r   r   )r   rq   r   )rq   r   r   )r   r1  r   r
   rQ  r   r   rO  r  rP  r;  r   r   )r"   r   r   r   r$  r   r   r2  rI   rT  rR  i1i2rS  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^,          ,          ,           # rY  r   r   s   &&r*   r   $TestRegularGridInterpolator.<lambda>8  s    Q!Va!q&j0r-   c                Z    ^V ^,          ,          ^V^,          ,          ,           V,
          # rY  r   )r   r   r>  s   &&&r*   r   r`  9  s    AQJQ!V3a7r-   c                h    ^V ^,          ,          ^V^,          ,          ,           V,
          V,           # rY  r   r   r   r>  as   &&&&r*   r   r`  :  s#    q16zAQJ6:Q>r-   c                t    ^V ^,          ,          ^V^,          ,          ,           V,
          W4,          ,           # rY  r   )r   r   r>  rd  bs   &&&&&r*   r   r`  ;  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)rI  r   r   r'  Tr@   N>   r   quinticr   )r\   r~   r   r  rP  uniformranger   r   r
   r   )r"   r   ndimsfuncrR  
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_nd5  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^,          ,          ,           # rY  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 descendingrY   Nr   r7   r         @      @r   r7   r9   r  r  )r   r1  r   r\   r	   r]   r
   )r"   r}  r   r   r$   r%   rZ   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  rO  )r"   r   rI   s   && r*   test_fill_value+TestRegularGridInterpolator.test_fill_valuek  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# rh  Way too slow.r   Fr  .r   rp   err_msgNr   r   r   r6   r7   r8   )r   r0   r1         .@r	        9@)r-  r-  r-  r-     )r   r   r   )r   r   r  )r\   r~   r   r  rP  r
   r  rj  appendr1  	transposer   )r"   r   r$   rR  r%   rH   rI   vvsjrK   s   &&         r*   test_nonscalar_values1TestRegularGridInterpolator.test_nonscalar_valuesq  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   rh  r  r5   )r   r0   r1   r  r	  r       A@      B@)	r   r0   r1   r  r	  r  r  r  /   r   r   r-  r   r  	   r   )r\   r~   r   reversedr   r  rP  r
   r  emptyrj  itemexpand_dimsr   )r"   r   r  r$   rT   rR  trailing_pointsr%   rH   rI   r  r  rS  r  rK   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# )rc   r   Fr  N.r  r   r  r  r5   )r   r   r  r   )
r   r  rP  r
   r  r  rj  r  r  r   )r"   r   r$   rR  r  r%   rH   rI   r  r  rS  r  rK   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^,          ,          ,           # rY  r   r   s   &&r*   r$  :TestRegularGridInterpolator.test_float32_values.<locals>.f  s    q!t8a!Q$h&&r-   r   Tr&  r   g@ffffff
@g@rl   g Y`@g{,c@gHz>F)rp   rtolr   N)r   r   r   astyper
   r1  r   )r"   rm   r  r$  r   r   r   r   r2  rI   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 # rP   r   r   s   &r*   r   =TestRegularGridInterpolator.test_bad_solver.<locals>.<lambda>  s    1r-   )solverNrd   c                     V # rP   r   r  s   &r*   r   r        r-   )r   r  c                     V # rP   r   r  s   &r*   r   r  
  r  r-   woof)r   r  r  )r   solver_args)r   r   r   rs   r]   r
   	TypeError)r"   r   r   r   r   r2  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# )
rB   rd   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)tidrI   spliner   methodsrH   s   &&  r*   	worker_fn?TestRegularGridInterpolator.test_concurrency.<locals>.worker_fn  s6    ^^FS1W%F6&)>>V+++r-   NrA   rD   rF   )r,  rB   rE   r   )r+   r   r1  r
   r   )r"   r$   r%   rI   r  r  rH   s   &    @@r*   test_concurrency,TestRegularGridInterpolator.test_concurrency  s_    ,,R033335 6 )	J i(	, 	 I6r-   r   )r   rh  rx   rA   rD   rF   r   )rB   rB   rC   rC   )rB   rB   rB   rB   r   r   )rB   r   g333333?rC   rN  )rk  rl  )9__name__
__module____qualname____firstlineno__r+   r2   r:   r=   parametrize_rgi_interp_methodsrL   r\   markparametrizer^   r   r   rf   ru   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  float32rt   r   r3  r   r7  rE  rU  r]  	fail_slowry  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,          # rP   )r   )r"   idxs   &&r*   __getitem__MyValue.__getitem__1  s    wws|r-   c                    R # rP   r   )r"   s   &r*   __array_interface__MyValue.__array_interface__4  s    r-   Nc                    \        R 4      h)zNo array representation)RuntimeError)r"   rm   copys   &&&r*   	__array__MyValue.__array__7  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%# )&TestInterpNi;  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   r7   r9   r  r  g      @)rq   r   rq   r   rq   rq   )rq   r   r   r   rq   rq   )rq   r   r   r   rq   rq   )r   r1  )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\        WV4      p\        P                  ! . RO. RO.4      P
                  p\        \        W3W6RR7      VP                  VR,          VR	,          4      4       \        \        W3W6RR7      \        WVR,          VR	,          RR7      4       R# )
rq   	splinef2dr@   FgridNrq   ffffff@r(  r   r  333333?r   rq   r  r  r  r0   r   r   r   r   r   rq   )r  r   r   r   r1  r;  r   r   evr   r   )r"   r   r   r>  lut
lut_customr  s   &      r*   test_spline_2dTestInterpN.test_spline_2dK  s    &&(a!!*Q1%
XX668 99: 	!'1&!"L"%&&D2d8"<	>kB"@&0T(BtH+0#2	3r-   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# )rq   r@   )r  Nr  r  )r  r   r1  r;  r   rG   r   )r"   r   r   r   r>  r  rJ   rK   s   &&      r*   rL   TestInterpN.test_list_inputY  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\        WV4      p\         P                  ! . RO. RO.4      P                  p\        W3W6RRRR7      pVP                  VR,          VR,          4      pRVR&   \        Wx4       \        WVR,          VR,          RR7      p	RV	R&   \        Wy4       RV	R&   \        Wy4       \        \        \
        W3W6RRRR7       R# )r   r  FR?@r  :r   r   Nr  Nr  rq   r   rq   r   rq   rq   r   r   r   rq   rq   r   r   r   rq   rq   r  r/  r   r  r  r   rq   r  r  g      r0   r   r   r  r  )r   r1  r   r   r;  r   r   r   r   r   rs   r]   )
r"   r   r   r>  r  r  r  actualexpectedexpected_customs
   &         r*   test_spline_2d_outofbounds&TestInterpN.test_spline_2d_outofboundsd  s   HH*+HH*+HHo%8 9!!*Q1%
XX679 ::;! 	!{&+@66"T(BtH-!&384"T(8%0%0 	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_data  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# )rB   rc   r@   Nr   r  r
   r   r   r   r   r"   r$   r%   	interp_rgrH   r   s   &     r*   test_linear_4dTestInterpN.test_linear_4d  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# )rB   r  rc   Fr  NrB   r   g333333$@r   r  r   r   r   r   r"   r$   r%   rH   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# )rB   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# )rB   F)r   Nr   Nr   )r  r   r   r   r   r"   r$   r%   rH   rJ   rK   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  r6  r)  r.  )r  r   r   r   r  r   c_r;  ravelr   r   )r"   r   r   r   r%   r$   r  yirH   rJ   xxyyrK   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  )r\   r~   r   r  rP  r   r  rj  r1  r  r   )
r"   r   r$   rR  r%   rH   r  r  r  rK   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   rh  r  r  r  r   r  )r\   r~   r   r  rP  r   r  rj  r   r   r;  )r"   r   r$   rR  r  r%   rH   r  r  rS  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  rs   r]   r   )r"   r$   r%   rH   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# )rx   ry   r|   r@   r}   Nr  r  )
r\   r~   r  r   r1  r;  r   r   r   r   )r"   r   r   r   r%   r$   rH   rJ   v2rv2irK   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)r|   r   rY   rx   r@   Nr  r  )r  r   r1  r;  r\   r	   r]   r   r"   r   r   r%   r$   rH   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)r|   r  r@   Nr  r  )r  r   r1  r;  r\   warnsr   r   rE  s   &     r*   test_complex_spline2fd"TestInterpN.test_complex_spline2fd:  st    ++-f"V)#::< ==>Q 	\\.))FF;? *)))s   /BB	r   rc   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%   rJ   rK   s   &&     r*   r   "TestInterpN.test_duck_typed_valuesE  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@   rh  g-C6
?g>)rp   r  N)r   r   r   r  r  r   r   r   )r"   r   r   r   r%   rH   rJ   rK   s   &&      r*   test_matrix_inputTestInterpN.test_matrix_inputS  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	# )rB   g@g	@gffffff@rn   ro   r   r6   FNr   )rB   rq   rr   )r   r   r   )gQ?gffffff@gffffff @gffffff)r   r1  r   r   )r"   r%   r  rT  r   s   &    r*   r3   TestInterpN.test_length_one_axisf  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,
          # rY  r   rc  s   &&&&r*   value_func_4d9TestInterpN.test_descending_points.<locals>.value_func_4d}  s'    qAv:AF
*Q.22r-   rB   r,  r   r   r'  TN)r   rq   r   r   )r   rr   r	  r
  )r   rB   rE   r,  r   )r   r1  r   r  r   r   r   )r"   rU  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_points|  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  rY   Nr  r  r	  r
  r  r  r  )r   r1  r;  r\   r	   r]   r   )r"   r   r   r>  r  rZ   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 1rY   N)r   rq   )rq   rq   r   )r   r  rs   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  r1  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   rn  ro  FNr   r-  rp  )r"   r   r   r$   r%   rs  rt  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  rl  rm  )r   r   r:  
empty_liker;  r  rq  c_contiguousr  r1  r   r
   )r"   r   r   r>  r$   r%   rs  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-   rm   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   rl   rn  ro  Nrx  )r   r   r  r1  r   r
   )r"   rm   r   r   r$   r%   rs  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  rL   r  r  r  r   r#  r&  r+  r/  r7  r\   r  r  r  r  r>  r   rF  rJ  r  r   r   rO  r3  rc  r  ri  ru  ry  r~  r  r  r  r  s   @r*   r  r  ;  s[    3 $0 $0;8=2=2 2 $2 $2& [[1#; $ ;0 $I $I@* $  $ $	<	@ [[	93	3 #$ $ $"1,54
#(777 [[Wuen5	7 6	7r-   r  )#r   r\   numpyr   numpy.exceptionsr   scipy._lib._array_apir   r   r   r   scipy.conftestr   r	   rs   scipy.interpolater
   r   r   r   r   scipy.interpolate._regridr   r   scipy.sparse._sputilsr   scipy._lib._testutilsr   r  r  _ALL_METHODSr  r   r   r  r   r-   r*   <module>r     s       +  / *L LN ) 9 "(!8!8%22"  *+E7 E7 ,E7P6 6(f7 f7r-   