+
    /i8	                         R t ^ RIt^ RIt^ RIHtHt ^ RIHt R t	R	R lt
]! ]P                  4      ]P                  P                  R. R
O4      ]P                  P                  R. RO4      R 4       4       4       tR# )zTests for spline filtering.N)assert_almost_equalmake_xp_test_case)ndimagec                B    ^ ^.^^.^^^.^^^.^. RO^. RO/pW,          # )z0Knot values to the right of a B-spline's center.)   L      )B      r    )orderknot_valuess   & ^/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/ndimage/tests/test_splines.pyget_spline_knot_valuesr   
   s>    qcqcq!fq!flk#K     c                   \        V4      p\        P                  ! W34      p\        V4       FA  w  rg\        P                  ! Wa4      pV^ 8X  d   WuW3&   K)  WuWV,
          3&   WuW,
          V3&   KC  	  V^ ,          ^\        VR,          4      ,          ,           p	VR8X  d   ^^rM$VR8X  d   ^ ^rMVR8X  d   RRrM\        RV 24      h\        \        V4      ^,
          4       Fv  p\        WL^,           R 4       F[  w  rW\WV,          ,           3;;,          V,          uu&   W\) ^,
          V
) ^,
          W,          ,
          3;;,          V,          uu&   K]  	  Kx  	  V P                  WY,          4      # )z1Matrix to invert to find the spline coefficients.:r   NNmirrorreflect	grid-wrapzunsupported mode N)
r   npzeros	enumeratearangesum
ValueErrorrangelenasarray)xpnr   moder   matrixdiag
knot_valueindicesknot_values_sumstartsteprowidxs   &&&&          r   make_spline_knot_matrixr+      sT   (/K XXqfF%k2))D$19'17#$.87dN*+.87>7*+ 3 "!nq3{2+?'??Oxt		t		"t,TF344S%)*(1WX)>?OCS(()Z7)4!8eVaZ$(223zA3  @ +
 ::f.//r   r   r!   c                     ^dpVP                  W2P                  R7      p\        P                  ! V^ V VR7      p\        P                  ! V^V VR7      p\	        W#WR7      p\        WEV,          4       \        WFVP                  ,          4       R# )d   )dtype)axisr   r!   )r!   N)eyefloat64r   spline_filter1dr+   r   T)r   r!   r   r    r0   spline_filter_axis_0spline_filter_axis_1r"   s   &&&     r   %test_spline_filter_vs_matrix_solutionr6   8   s{     	A
&&**&
%C"223Qe8<>"223Qe8<>$RE=FF:;FHH<=r   )r   )    r               )r   r   r   )__doc__pytestnumpyr   scipy._lib._array_apir   r   scipyr   r   r+   r2   markparametrizer6   r   r   r   <module>rC      ss    !   H 	0D 7**+"45!CD	> E 6 ,	>r   