+
    :i7                        ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ]! RRR.4      t
]P                  ! ]P                  ]P                  ]P                  P                  ]P                  P                   ^R7      ]P                  P                  ]P                  P                   ^R7      ]P                  ]P                  P                  ]P                  P                   ^R7      ]P                  P                  ]P                  P                   ^R7      ]P                  ]P                  4	      ! ]	P"                  R,          4      t ! R	 R
]4      tR t ! R R]4      t ! R R]4      tRR ltRR ltR tR tR# )    )
namedtupleN)
_helperlibExtentbeginend)ndimattempt_nocopy_reshapec                   V   a  ] tR t^t o RtRtR tR tR tR t	R t
RR ltR	 tR
tV tR# )DimzA single dimension of the array

Attributes
----------
start:
    start offset
stop:
    stop offset
size:
    number of items
stride:
    item stride
c                h    Wn         W n        W0n        W@n        WPn        V'       d   V^8X  g   Q hR# R# )   Nstartstopsizestridesingleselfr   r   r   r   r   s   &&&&&&[/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/cuda/cudadrv/dummyarray.py__init__Dim.__init__*   s.    
		TQY&&Y6    c                ^   \        V\        4      '       d   VP                  V P                  4      w  r#pW@P                  ,          pV P
                  V\        V P                  4      ,          ,           pV P
                  V\        V P                  4      ,          ,           pV^ 8X  d   ^pM\        W#V4      p\        VVVVRR7      pV# VR8w  d   WV^,            MV RR pVP                  ^8w  d   \        h\        VP
                  VP                  VP                  VP                  RR7      # )r   Fr   NT)
isinstancesliceindicesr   r   r   abs_compute_sizer   
IndexErrorr   )	r   itemr   r   stepr   r   retsliceds	   &&       r   __getitem__Dim.__getitem__2   s    dE"" $TYY 7EKK'FJJT[[)9!99E::s4;;'7 77D{$U&9C J,0BJTtax(DIF{{a  ll[[[[}} r   c                H    V P                   WP                  ,          ,           # N)r   r   )r   idxs   &&r   
get_offsetDim.get_offsetP   s    zzC++---r   c                n    R pWP                   V P                  V P                  V P                  3,          # )z*Dim(start=%s, stop=%s, size=%s, stride=%s))r   r   r   r   )r   strfmts   & r   __repr__Dim.__repr__S   s)    =TYY		4;;GGGr   c                    \        V P                  V,
          V P                  V,
          V P                  V P                  V P
                  R 7      # )r   )r   r   r   r   r   r   )r   bases   &&r   	normalizeDim.normalizeW   s:    d*T1A		$++dkkK 	Kr   Nc                    Vf   V P                   pVf   V P                  pVf   V P                  pVf   V P                  pVf   V P                  p\        WW4V4      # r)   )r   r   r   r   r   r   r   s   &&&&&&r   copyDim.copy[   sW    =JJE<99D<99D>[[F>[[F5f55r   c                     V P                   V8H  # r)   r   )r   itemsizes   &&r   is_contiguousDim.is_contiguoush   s    {{h&&r   )r   r   r   r   r   r   )NNNNN)__name__
__module____qualname____firstlineno____doc__	__slots__r   r&   r+   r/   r3   r6   r;   __static_attributes____classdictcell____classdict__s   @r   r   r      s;      <I'<.HK6' 'r   r   c                 8    \        R  \        W4       4       4      # )c              3   H   "   T F  w  rVP                  V4      x  K  	  R # 5ir)   )r+   ).0ids   &  r   	<genexpr> compute_index.<locals>.<genexpr>m   s     >+=41q||A+=s    ")sumzip)r   dimss   &&r   compute_indexrQ   l   s    >3w+=>>>r   c                   0   a  ] tR t^pt o RtR tR tRtV tR# )ElementFc                    Wn         R # r)   extent)r   rV   s   &&r   r   Element.__init__s   s    r   c              #  *   "   V P                   x  R # 5ir)   rU   r   s   &r   iter_contiguous_extentElement.iter_contiguous_extentv   s     kks   rU   N)	r=   r>   r?   r@   is_arrayr   rZ   rC   rD   rE   s   @r   rS   rS   p   s     H r   rS   c                      a  ] tR t^zt o RtRt]R 4       tR tR t	R t
R tR t]R	 4       t]R
 4       tR tR tRR ltRR ltRtV tR# )Arraya  A dummy numpy array-like object.  Consider it an array without the
actual data, but offset from the base data pointer.

Attributes
----------
dims: tuple of Dim
    describing each dimension of the array

ndim: int
    number of dimension

shape: tuple of int
    size of each dimension

strides: tuple of int
    stride of each dimension

itemsize: int
    itemsize

extent: (start, end)
    start and end offset containing the memory region
Tc           	         . p\        W#4       F3  w  rg\        WWg,          ,           WgR R7      pVP                  V4       ^ pK5  	  V ! WT4      # )F)r   )rO   r   append)	clsoffsetshapestridesr:   rP   ashapeastridedims	   &&&&&    r   	from_descArray.from_desc   sO    "52OFfv'77"$CKKF	  3
 4""r   c                8   \        V4      V n        \        V P                  4      V n        \         ;QJ d    . R  V P                   4       F  NK  	  5M! R  V P                   4       4      V n        \         ;QJ d    . R V P                   4       F  NK  	  5M! R V P                   4       4      V n        W n        \        P                  ! \        P                  V P                  ^4      V n        V P                  4       V n        V P                  4       V n        R# )c              3   8   "   T F  qP                   x  K  	  R # 5ir)   )r   rI   rg   s   & r   rL   !Array.__init__.<locals>.<genexpr>   s     9y88y   c              3   8   "   T F  qP                   x  K  	  R # 5ir)   r9   rl   s   & r   rL   rm      s     =9CZZ9rn   N)tuplerP   lenr   rc   rd   r:   	functoolsreduceoperatormulr   _compute_extentrV   _compute_layoutflags)r   rP   r:   s   &&&r   r   Array.__init__   s    $K			N	U9tyy9UU9tyy99
u=499=uu=499== $$X\\4::qA	**,))+
r   c                z   V P                   '       g   R RRR/# \        V P                    Uu. uF  qP                  ^ 8H  NK  	  up4      '       d   R RRR/# R RRR/pV P                  p\	        V P                   4       FW  pVP
                  ^ 8X  d	   R RRR/u # VP
                  ^8w  g   K/  VP                  V8w  d   RVR &   W1P
                  ,          pKY  	  V P                  pV P                    FB  pVP
                  ^8w  g   K  VP                  V8w  d
   RVR&   Vu # W1P
                  ,          pKD  	  V# u upi )C_CONTIGUOUSTF_CONTIGUOUSF)rP   anyr   r:   reversedr   )r   rg   rx   sds   &   r   rw   Array._compute_layout   s    yyy"D.$?? 49959C

a9566"E>5AA~t< ]]DII&Cxx1}&ndCCxx1}::#,1E.)hh ' ]]99Cxx1}::#,1E.) Lhh  3 6s   D8c                   ^ .V P                   ,          pV P                   Uu. uF  q"^,
          NK  	  pp\        WP                  4      p\        W0P                  4      V P                  ,           p\        WT4      p\        WE4      # u upi )r   )r   rc   rQ   rP   r:   maxr   )r   firstidxslastidxr   r   s   &     r   rv   Array._compute_extent   sl    3?"&**-*Qq55*-h		2Wii04==@4e""	 .s   Bc                @    R V P                   : RV P                  : R2# )z<Array dims=z
 itemsize=>)rP   r:   rY   s   &r   r/   Array.__repr__   s    04		4==IIr   c                   \        V\        4      '       g   V.pM\        V4      p\        V4      p\        V P                  4      pW#8  d   \        R W#,
          3,          4      h\        V4      V8  d   VP                  \        RR4      4       K-  \        V P                  V4       UUu. uF  w  rEVP                  V4      NK  	  pppV Uu. uF"  qwP                  '       d   K  VP                  NK$  	  pp\        W`P                  4      p	V'       d   V	P                  ! V!  ^ ,          # \        V	P                   4      # u uppi u upi )z%d extra indices givenN)r   rp   listrq   rP   r!   r`   r   rO   r&   r   r   r^   r:   reshaperS   rV   )
r   r"   nitemr   rg   itrP   rK   newshapearrs
   &&        r   r&   Array.__getitem__   s    $&&6D:DD	499~<5GHH $i$KKdD)*36tyy$3GH3G#3GH$(9DqFAFFD9D--(;;)!,,3::&& I9s   +EE&Ec                (    V P                   R ,          # )r{   rx   rY   s   &r   is_c_contigArray.is_c_contig       zz.))r   c                (    V P                   R ,          # )r|   r   rY   s   &r   is_f_contigArray.is_f_contig   r   r   c              #    "   V P                   '       g   V P                  '       d   V P                  x  R# V P                  ^ ,          P                  V P                  R,          P                  8  d;   V P                  ^ ,          pV P                  R,          pV P
                  R,          pM1V P                  R,          pV P                  RR pV P
                  RR pVP                  V P                  4      '       di   V Uu. uF  p\        V4      NK  	  pp\        P                  ! V!   F4  p\        Wb4      pWqP                  ,           WqP                  ,           3x  K6  	  R# V P
                   Uu. uF  p\        V4      NK  	  pp\        P                  ! V!   F.  p\        W`P                  4      pWV P                  ,           3x  K0  	  R# u upi u upi 5i)zGenerates extents
        r   NNNr   )r   r   rV   rP   r   rc   r;   r:   range	itertoolsproductrQ   r   r   )	r   innerdim	outerdims
outershaper   oslenr   r2   rb   s	   &        r   rZ   Array.iter_contiguous_extent   s`     t///++yy|""TYYr]%9%9999Q< IIbM	!ZZ^
99R= IIcrN	!ZZ_
%%dmm44+56:aq:6(00%8G(<D/1EEE  9 ,0::6:aq:6(00%8G*7II>F 4=="888  9 7
 7s+   $GCG GGAG6G
AGc                V   V P                   p\        V4      pWP                  8X  d   V R 3# VP                  RR4      pV'       d!   \	        RVP                  4       ,          4      hVR9  d   \        R4      hRp^p\        V4       F*  w  rV	^ 8  d   VR8X  d   TpK  \        R4      hWy,          pK,  	  V^ 8  dY   V^ 8X  g   V P                  V,          ^ 8w  d   \        R4      hV^ V V P                  V,          3,           W^,           R  ,           p\        P                  ! \        P                  V^4      p
VR8X  d   V P                  '       d   R	MRpWP                  8w  d   \        R
4      hV P                  '       g   V P                  '       dF   VR8X  d   \        \!        W4      4      pEM+VR	8X  d   \        \#        W4      4      pEM\%        R4      h\&        P(                  ! V\&        P*                  P,                  4      p\&        P.                  ! V P                  \&        P*                  P,                  R7      p\&        P.                  ! V P0                  \&        P*                  P,                  R7      p\&        P.                  ! V\&        P*                  P,                  R7      p\3        VVVVVVV P4                  VR	8H  4      '       g   \7        R4      hV P9                  V P:                  P<                  VWP4                  R7      pV\        V P?                  4       4      3# )NorderCzunknown keyword arguments %sCFAorder not C|F|Az&can only specify one unknown dimensionz.cannot infer valid shape for unknown dimensionAFz%reshape changes the size of the arrayunreachable)dtypezreshape would require copyrc   rd   r:   r   ) r   rq   rc   pop	TypeErrorkeys
ValueError	enumerater   rr   rs   rt   ru   r   r   r   iter_strides_c_contigiter_strides_f_contigAssertionErrornpempty	ctypeslibc_intparrayrd   r	   r:   NotImplementedErrorrh   rV   r   rZ   )r   newdimskwsoldndnewndr   
unknownidx	knownsizerJ   rg   newsize
newstridesolddims
oldstridesr$   s   &*,            r   r   Array.reshape  s   		Gjj :%:SXXZGHH.// 
	(FAQw#!"J$%MNN 	 ) ?A~Y!6!!;  "9 : : "!J/yyI-/01no./ ""8<<!<C<+++CEiiDEEt///|!"7"FG
#!"7"FG
$]33%)<)<=J hhtzz1D1DEG$,,bll6I6IJJhhwbll.A.ABG)	 	 **FGGnnT[[..g%/--  I D446777r   Nc                   . . r2VfV   \        V P                  V P                  4       F0  w  rEV^8w  g   K  VP                  V4       VP                  V4       K2  	  M\	        V\
        4      '       g   V3pV F&  pV P                  V,          ^8w  g   K  \        R4      h	  \        \        V P                  V P                  4      4       F2  w  pw  rEWq9  g   K  VP                  V4       VP                  V4       K4  	  V P                  V P                  P                  VVV P                  R7      pV\        V P                  4       4      3# )NzDcannot select an axis to squeeze out which has size not equal to oner   )rO   rc   rd   r`   r   rp   r   r   rh   rV   r   r:   r   rZ   )	r   axisr   r   lengthr   axrJ   newarrs	   &&       r   squeezeArray.squeeze`  s   !2*<"%djj$,,"?Q;OOF+%%f- #@
 dE**w::b>Q&$+   (1TZZ1N'O##F=OOF+%%f- (P KK]]	   
 tD779:::r   c                l   VR 9  d   \        R4      hVR9   d   V P                  '       g   VR9   dy   V P                  '       dg   V P                  3pV P                  3pV P                  V P                  P                  W#V P                  4      pV\        V P                  4       4      3# \        R4      h)r   r   CAFAzravel on non-contiguous array)r   r   r   r   r:   rh   rV   r   r   rZ   r   )r   r   r   r   r   s   &&   r   ravelArray.ravel|  s    .//TMd...D=T%5%5%5		|H--)J..!2!2H!%0CT88:;;; &&EFFr   )rP   rV   rx   r:   r   rc   r   rd   r)   )r   )r=   r>   r?   r@   rA   r\   classmethodrh   r   rw   rv   r/   r&   propertyr   r   rZ   r   r   r   rC   rD   rE   s   @r   r^   r^   z   s     . H# #,$L#J'0 * * * *94K8Z;8G Gr   r^   c              #     "   Vf   V P                   MTpV P                  pVx  ^pVRR  F  pW4,          pW2,          x  K  	  R# 5i)z$yields the f-contiguous strides
    Nr   )rc   r:   )r   rc   r:   rN   r   s   &&   r   r   r     sH      CIIEE||H
N
C3BZn s   AAc              #     aa"   Sf   V P                   MSoV P                  oVV3R lp\        \        V! 4       4      4       F  pVx  K	  	  R# 5i)z$yields the c-contiguous strides
    Nc               3   t   <"   Sx  ^p \        SR,          4       F  pW,          p V S,          x  K  	  R# 5i)r   r   N)r~   )rN   r   r:   rc   s     r   gen"iter_strides_c_contig.<locals>.gen  s4     %)$AHC.  %s   58)rc   r:   r~   r   )r   rc   r   rJ   r:   s   &f  @r   r   r     sA      CIIEE||H! d35k" #s   AAc                     \        V \        4      '       d   R # \        V \        4      '       dO   \        V 4      V8X  d=   \        ;QJ d    R V  4       F  '       g   K   RM	  R M! R V  4       4      '       g   R# R # R# )Fc              3   B   "   T F  p\        V\        4      x  K  	  R # 5ir)   )r   r   )rI   r   s   & r   rL   &is_element_indexing.<locals>.<genexpr>  s     <tz"e,,ts   T)r   r   rp   rq   r}   )r"   r   s   &&r   is_element_indexingr     sY    $	D%	 	 t93<t<333<t<<<
  r   c                r    V^ 8  d   T pTpMTpT pV) pW48  d   ^ # WC,
          ^,
          V,          ^,           # )z1Algorithm adapted from cpython rangeobject.c
     )r   r   r#   lohis   &&&  r   r    r      sD     axu	xGaKD 1$$r   r)   )collectionsr   r   rr   rt   ctypesnumpyr   numbar   r   	CFUNCTYPEc_intc_longr   	ndpointerr   	c_helpersr	   objectr   rQ   rS   r^   r   r   r   r    r   r   r   <module>r      s>   "      	Hw.	/))
LL
MMLL2<<..Q7LL2<<..Q7
MMLL2<<..Q7LL2<<..Q7
MM
LL
 /0
2 O'& O'd?f OGF OGd	"%r   