+
    0i                     $   R t ^ RIt^ RIt^ RIHtHt ^ RIHtH	t	H
t
Ht ^ RIHtHtHtHt ^ RIHt R t]]]
]	.t]]	.t]P*                  P-                  R]4       ! R R	4      4       t]P*                  P-                  R]4       ! R
 R4      4       tR# )z3Test of min-max 1D features of sparse array classesN)assert_equalassert_array_equal)	coo_array	csr_array	csc_array	bsr_array)
coo_matrix
csr_matrix
csc_matrix
bsr_matrix)isscalarlikec                     \        V \        P                  4      '       g   \        V 4      '       d   V # V P	                  4       # )N)
isinstancenpndarrayr   toarray)as   &^/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/sparse/tests/test_minmax1d.pyr   r      s,    !RZZ  LOO99;    	spcreatorc                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )Test_MinMaxMixin1Dc                   \         P                  ! ^4      pV! V4      p\        VP                  4       ^ 4       \        VP	                  4       ^4       \        V) P                  4       R4       \        V) P	                  4       ^ 4       R# )   N)r   aranger   minmax)selfr   DXs   &&  r   test_minmaxTest_MinMaxMixin1D.test_minmax   s\    IIaLaLQUUWa QUUWa qbXXZ$qbXXZ#r   c           	        \         P                  ! ^24      pV! V4      pR Fo  p\        \        VP	                  VR7      4      VP	                  VRR7      4       \        \        VP                  VR7      4      VP                  VRR7      4       Kq  	  R F  p\        P                  ! \        RR7      ;_uu_ 4        VP                  VR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  VR7       RRR4       K  	  R#   + '       g   i     LU; i  + '       g   i     K  ; i)	2   axisTr&   keepdimszaxis out of rangematchN)    )   )	r   r   r   r   r   r   pytestraises
ValueError)r   r   r   r    r&   s   &&   r   test_minmax_axis#Test_MinMaxMixin1D.test_minmax_axis#   s    IIbMaLD4()155dT5+J 4()155dT5+J	  Dz1DEE4  Fz1DEE4  FE EEEEEs   =D<D0D-0Ec                   \         P                  ! . RO4      pV! V4      p\        \         P                  ! V4      \         P                  ! V4      4       \        \         P                  ! V4      \         P                  ! V4      4       R# )r+   N)r+   r.      )r   arrayr   r   r   )r   r   datdatsps   &&  r   test_numpy_minmax$Test_MinMaxMixin1D.test_numpy_minmax4   sM    hhy!#266%="&&+6266%="&&+6r   c           	     6   \         P                  ! . RO4      p\         P                  ! . RO4      p\         P                  ! . RO4      p\         P                  ! . RO4      p\         P                  ! . R	O4      pW#WEV3 F  pV! V4      p\        VP                  4       \         P                  ! V4      4       \        VP	                  4       \         P                  ! V4      4       \        VP                  ^ R7      \         P                  ! V^ R7      4       \        VP	                  ^ R7      \         P                  ! V^ R7      4       K  	  \         P
                  ! R
4      p	R F  p
V! V	4      p\        P                  ! \        RR7      ;_uu_ 4        VP	                  V
R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP                  V
R7       RRR4       K  	  R#   + '       g   i     LU; i  + '       g   i     K  ; i)r.   r%   Nzto an empty matrixr)   )r,   r   r5      r+   r+   r,   r-   )r,   r-   r   )r.   r5   r<      )r.   r5   r+   r+   )r+   )Nr+   )	r   r6   r   argmaxargminemptyr/   r0   r1   )r   r   D1D2D3D4D5r   matD6r&   s   &&         r   test_argmaxTest_MinMaxMixin1D.test_argmax;   sU   XXm$XXn%XX&'XXl#XXl#""%AA,Cryy|4ryy|4+RYYqq-AB+RYYqq-AB & XXd^DB-Cz1EFF


% Gz1EFF


% GF	 FFFFFs   G4H4HH N)
__name__
__module____qualname____firstlineno__r!   r2   r9   rJ   __static_attributes____classdictcell____classdict__s   @r   r   r      s     $!"7& &r   r   c                   &   a  ] tR t^Ut o R tRtV tR# )Test_ShapeMinMax2DWithAxisc                n   \         P                  ! . R	O. R
O. RO.4      pV! V4      pVP                  \         P                  3VP                  \         P                  3VP                  \         P                  3VP
                  \         P
                  33 Fj  w  rER F_  w  rg\        \        V! VR7      4      V! W&R7      4       \        V! VR7      P                  V4       V! VR7      P                  R8X  d   K_  Q h	  Kl  	  VP                  VP                  3 F5  pR F,  p\        V! VR7      \         P                  4      '       d   K,  Q h	  K7  	  R\        R\        R\         R\"        /pWP                  ,          ! V4      p	V	P                  \         P                  3V	P                  \         P                  3V	P                  \         P                  3V	P
                  \         P
                  33 Fk  w  rR F`  w  rg\        \        V
! VR7      4      V! W&RR7      4       \        V
! VR7      P                  V4       V
! VR7      P                  R8X  d   K`  Q h	  Km  	  V	P                  V	P                  3 F5  pR F,  p\        V! VR7      \         P                  4      '       d   K,  Q h	  K7  	  R# )r.   r%   coocsrcscbsrTr'   N)r,   r   r+   r<   r=   )r+   r+   r.   r5   ))r+   )r?   )r.   )r<   )r+   r.   ))r+   )r.   r?   )r.   )r<   r.   )r   r6   r   r   nanminnanmaxr   r   shapeformatrA   r@   r   r   r   r	   r
   r   )r   r   r7   r8   spminmaxnpminmaxaxresult_shape
spmat_formdatspmspmnpms   &&          r   r!   &Test_ShapeMinMax2DWithAxis.test_minmaxW   s   hh~|DE# YYYY\\299%\\299%	%
 X %; WX2%67#9OPX2.44lCR(//5888 %;%
 u||4H!("3RZZ@@@@  5 ::::	

 LL)#. ZZ ZZ ]]BII&]]BII&	
HC %? WSb\2Ct4TUSb\//>|**e333 %?
  6H!("3RZZ@@@@  7r   rL   N)rM   rN   rO   rP   r!   rQ   rR   rS   s   @r   rV   rV   U   s     )A )Ar   rV   )__doc__r/   numpyr   numpy.testingr   r   scipy.sparser   r   r   r   r   r	   r
   r   scipy.sparse._sputilsr   r   formats_for_minmax formats_for_minmax_supporting_1dmarkparametrizer   rV   rL   r   r   <module>rr      s    9   : C C G G .  IyA $-y#9   &FG9& 9& H9&x &89*A *A :*Ar   