
    Kh#                        S r SSKJrJrJrJrJrJrJrJ	r	J
r
JrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJr  SSKJr  \" S5       " S S5      5       r\ S:X  a  \" \" S5      S	5      r!\" \!5      r"\#" \$" \"5      5        \#" \" \"5      \"R.                  5        \"S
S2S
S24   r%\#" \%5        S\%S'   \#" \%S   \"S   5        \#" \" \%5      S-  S-  \" \%S-  5      -   5        \#" \" \%S5      \&" \" \%S5      5      5        \#" \&" \%\" \" S5      \" \%5      5      -  5      5        \#" \" \%S5      5        \#" \" \%5      5        g
g
)a7  
Container class for backward compatibility with NumArray.

The user_array.container class exists for backward compatibility with NumArray
and is not meant to be used in new code. If you need to create an array
container class, we recommend either creating a class that wraps an ndarray
or subclasses ndarray.

    )arrayasarrayabsoluteaddsubtractmultiplydivide	remainderpower
left_shiftright_shiftbitwise_and
bitwise_orbitwise_xorinvertless
less_equal	not_equalequalgreatergreater_equalshapereshapearangesinsqrt	transpose)
set_moduleznumpy.lib.user_arrayc                      \ rS rSrSrSES jrS rSFS jrS rS r	S	 r
S
 rS rS r\rS rS rS rS rS r\rS rS rS rS rS rS rS rS rS rS rS rS r S r!S r"S  r#S! r$S" r%S# r&S$ r'S% r(S& r)S' r*S( r+S) r,S* r-S+ r.S, r/S- r0S. r1S/ r2S0 r3S1 r4S2 r5S3 r6S4 r7S5 r8S6 r9S7 r:S8 r;S9 r<S: r=S; r>S< r?S= r@S> rAS? rBS@ rCSA rDSB rESC rFSDrGg)G	container   z
container(data, dtype=None, copy=True)

Standard container-class for easy multiple-inheritance.

Methods
-------
copy
tostring
byteswap
astype

Nc                 "    [        XUS9U l         g )N)copyr   )selfdatadtyper#   s       L/var/www/html/env/lib/python3.13/site-packages/numpy/lib/_user_array_impl.py__init__container.__init__"   s    4T2
    c                     U R                   S:  a8  U R                  R                  [        U R                  5      [        S5      S  -   $ U R                  R                  S-   [        U R                  5      -   S-   $ )Nr   r   ())ndim	__class____name__reprr   lenr%   s    r(   __repr__container.__repr__%   s^    99q=>>**T$**-=c'lm-LLL>>**S04

3CCcIIr+   c                 ^    U(       a  U R                   R                  U5      $ U R                   $ N)r   astype)r%   ts     r(   	__array__container.__array__+   s$    ::$$Q''zzr+   c                 ,    [        U R                  5      $ r8   )r3   r   r4   s    r(   __len__container.__len__1   s    4::r+   c                 >    U R                  U R                  U   5      $ r8   _rcr   )r%   indexs     r(   __getitem__container.__getitem__4   s    xx

5)**r+   c                 H    [        X R                  5      U R                  U'   g r8   )r   r'   r   )r%   rC   values      r(   __setitem__container.__setitem__7   s    #E::6

5r+   c                 J    U R                  [        U R                  5      5      $ r8   )rB   r   r   r4   s    r(   __abs__container.__abs__:   s    xx,--r+   c                 :    U R                  U R                  * 5      $ r8   rA   r4   s    r(   __neg__container.__neg__=   s    xx$$r+   c                 P    U R                  U R                  [        U5      -   5      $ r8   rB   r   r   r%   others     r(   __add__container.__add__@       xx

WU^344r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __iadd__container.__iadd__E   s    DJJzz*r+   c                 P    U R                  U R                  [        U5      -
  5      $ r8   rQ   rR   s     r(   __sub__container.__sub__I   rV   r+   c                 P    U R                  [        U5      U R                  -
  5      $ r8   )rB   r   r   rR   s     r(   __rsub__container.__rsub__L   s    xx344r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __isub__container.__isub__O       UJJ/r+   c                 ^    U R                  [        U R                  [        U5      5      5      $ r8   )rB   r   r   r   rR   s     r(   __mul__container.__mul__S   s     xxWU^<==r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __imul__container.__imul__X   rc   r+   c                 ^    U R                  [        U R                  [        U5      5      5      $ r8   )rB   r	   r   r   rR   s     r(   __div__container.__div__\   s     xxtzz75>:;;r+   c                 ^    U R                  [        [        U5      U R                  5      5      $ r8   )rB   r	   r   r   rR   s     r(   __rdiv__container.__rdiv___   s     xxwu~tzz:;;r+   c                 F    [        U R                  XR                  5        U $ r8   )r	   r   rR   s     r(   __idiv__container.__idiv__b   s    tzz5**-r+   c                 L    U R                  [        U R                  U5      5      $ r8   rB   r
   r   rR   s     r(   __mod__container.__mod__f       xx	$**e455r+   c                 J    U R                  [        XR                  5      5      $ r8   rt   rR   s     r(   __rmod__container.__rmod__i   s    xx	%455r+   c                 F    [        U R                  XR                  5        U $ r8   )r
   r   rR   s     r(   __imod__container.__imod__l   s    $**eZZ0r+   c                     U R                  [        U R                  U5      5      U R                  [        U R                  U5      5      4$ r8   rB   r	   r   r
   rR   s     r(   
__divmod__container.__divmod__p   s:    

E234::u568 	8r+   c                     U R                  [        XR                  5      5      U R                  [        XR                  5      5      4$ r8   r   rR   s     r(   __rdivmod__container.__rdivmod__t   s6    zz235**568 	8r+   c                 ^    U R                  [        U R                  [        U5      5      5      $ r8   )rB   r   r   r   rR   s     r(   __pow__container.__pow__x   s     xxdjj'%.9::r+   c                 ^    U R                  [        [        U5      U R                  5      5      $ r8   )rB   r   r   r   rR   s     r(   __rpow__container.__rpow__{   s     xxgendjj9::r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __ipow__container.__ipow__~   s    djj%,r+   c                 L    U R                  [        U R                  U5      5      $ r8   rB   r   r   rR   s     r(   
__lshift__container.__lshift__       xx
4::u566r+   c                 L    U R                  [        U R                  U5      5      $ r8   rB   r   r   rR   s     r(   
__rshift__container.__rshift__       xxDJJ677r+   c                 J    U R                  [        XR                  5      5      $ r8   r   rR   s     r(   __rlshift__container.__rlshift__       xx
5**566r+   c                 J    U R                  [        XR                  5      5      $ r8   r   rR   s     r(   __rrshift__container.__rrshift__       xxE::677r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __ilshift__container.__ilshift__       4::ujj1r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __irshift__container.__irshift__       DJJzz2r+   c                 L    U R                  [        U R                  U5      5      $ r8   rB   r   r   rR   s     r(   __and__container.__and__   r   r+   c                 J    U R                  [        XR                  5      5      $ r8   r   rR   s     r(   __rand__container.__rand__   r   r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __iand__container.__iand__   r   r+   c                 L    U R                  [        U R                  U5      5      $ r8   rB   r   r   rR   s     r(   __xor__container.__xor__   r   r+   c                 J    U R                  [        XR                  5      5      $ r8   r   rR   s     r(   __rxor__container.__rxor__   r   r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __ixor__container.__ixor__   r   r+   c                 L    U R                  [        U R                  U5      5      $ r8   rB   r   r   rR   s     r(   __or__container.__or__   r   r+   c                 J    U R                  [        XR                  5      5      $ r8   r   rR   s     r(   __ror__container.__ror__   r   r+   c                 F    [        U R                  XR                  5        U $ r8   )r   r   rR   s     r(   __ior__container.__ior__   r   r+   c                 8    U R                  U R                  5      $ r8   rA   r4   s    r(   __pos__container.__pos__   s    xx

##r+   c                 J    U R                  [        U R                  5      5      $ r8   )rB   r   r   r4   s    r(   
__invert__container.__invert__   s    xxtzz*++r+   c                 N    U R                   S:X  a  U" U S   5      $ [        S5      e)Nr   z6only rank-0 arrays can be converted to Python scalars.)r/   	TypeError)r%   funcs     r(   _scalarfunccontainer._scalarfunc   s-    99>Q= HJ Jr+   c                 ,    U R                  [        5      $ r8   )r   complexr4   s    r(   __complex__container.__complex__   s    ((r+   c                 ,    U R                  [        5      $ r8   )r   floatr4   s    r(   	__float__container.__float__   s    &&r+   c                 ,    U R                  [        5      $ r8   )r   intr4   s    r(   __int__container.__int__       $$r+   c                 ,    U R                  [        5      $ r8   )r   hexr4   s    r(   __hex__container.__hex__   r   r+   c                 ,    U R                  [        5      $ r8   )r   octr4   s    r(   __oct__container.__oct__   r   r+   c                 L    U R                  [        U R                  U5      5      $ r8   )rB   r   r   rR   s     r(   __lt__container.__lt__   s    xxTZZ/00r+   c                 L    U R                  [        U R                  U5      5      $ r8   )rB   r   r   rR   s     r(   __le__container.__le__   r   r+   c                 L    U R                  [        U R                  U5      5      $ r8   )rB   r   r   rR   s     r(   __eq__container.__eq__   s    xxdjj%011r+   c                 L    U R                  [        U R                  U5      5      $ r8   )rB   r   r   rR   s     r(   __ne__container.__ne__   rw   r+   c                 L    U R                  [        U R                  U5      5      $ r8   )rB   r   r   rR   s     r(   __gt__container.__gt__   s    xx

E233r+   c                 L    U R                  [        U R                  U5      5      $ r8   )rB   r   r   rR   s     r(   __ge__container.__ge__   s    xxdjj%899r+   c                 T    U R                  U R                  R                  5       5      $  )rB   r   r#   r4   s    r(   r#   container.copy   s    xx

)**r+   c                 6    U R                   R                  5       $ r   )r   tostringr4   s    r(   r   container.tostring   s    zz""$$r+   c                 6    U R                   R                  5       $ r   )r   tobytesr4   s    r(   r   container.tobytes   s    zz!!##r+   c                 T    U R                  U R                  R                  5       5      $ r   )rB   r   byteswapr4   s    r(   r  container.byteswap   s    xx

++-..r+   c                 V    U R                  U R                  R                  U5      5      $ r   )rB   r   r9   )r%   typecodes     r(   r9   container.astype   s     xx

))(344r+   c                 X    [        [        U5      5      S:X  a  U$ U R                  U5      $ Nr   )r3   r   r0   )r%   as     r(   rB   container._rc   s&    uQx=AH>>!$$r+   c                 *    U R                  US   5      $ r	  )r0   )r%   argss     r(   __array_wrap__container.__array_wrap__   s    ~~d1g&&r+   c                     US:X  a  [         R                  XU5        g  U R                  R                  X5        g ! [         a    [         R                  XU5         g f = fNr   )object__setattr__r   AttributeError)r%   attrrG   s      r(   r  container.__setattr__   sR    7?t51	2JJ""4/ 	2t51	2s   ;  AAc                 n    US:X  a  [         R                  X5      $ U R                  R                  U5      $ r  )r  __getattribute__r   )r%   r  s     r(   __getattr__container.__getattr__	  s/    GO**466zz**400r+   r$   )NTr8   )Hr1   
__module____qualname____firstlineno____doc__r)   r5   r;   r>   rD   rH   rK   rN   rT   __radd__rX   r[   r^   ra   re   __rmul__rh   rk   rn   rq   ru   ry   r|   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r#   r   r   r  r9   rB   r  r  r  __static_attributes__ r+   r(   r    r       sW   3J+7.%5 H55> H<<6688;;7878888877$,J)'%%%17264:+%$/5%'21r+   r    __main__i'  )d   r$  N      
   )r   r   g      @g      @   g      )r&  r%  )'r  numpy._corer   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   numpy._core.overridesr   r    r1   tempuaprintdirua_smalltyper"  r+   r(   <module>r3     sT          - "#x1 x1 $x1| z6%=*-D	4B	#b'N	%)RXX"1"bqb&zH	(OHTN	(4."T(#	#h-"
r
!DQ$7
78	$x
tD3$789	$x'&*eHo>>
?@	'(F
#$	)H
# r+   