§
    u! hÔ  ã                   óN   — d Z dgZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z G d„ d¦  «        Zd	S )
zG
Mixin classes for custom array types that don't inherit from ndarray.
ÚNDArrayOperatorsMixinc                 ó8   — 	 | j         du S # t          $ r Y dS w xY w)z)True when __array_ufunc__ is set to None.NF)Ú__array_ufunc__ÚAttributeError)Úobjs    úJc:\xampp_lite_8_4\www\timesheet\venv\Lib\site-packages\numpy/lib/mixins.pyÚ_disables_array_ufuncr      s7   € ðØÔ" dÐ*Ð*øÝð ð ð Øˆuˆuðøøøs   ‚ ‹
˜c                 ó(   ‡ — ˆ fd„}d|› d�|_         |S )z>Implement a forward binary method with a ufunc, e.g., __add__.c                 óH   •— t          |¦  «        rt          S  ‰| |¦  «        S ©N©r   ÚNotImplemented©ÚselfÚotherÚufuncs     €r   Úfuncz_binary_method.<locals>.func   s+   ø€ Ý  Ñ'Ô'ð 	"Ý!Ð!Øˆu�T˜5Ñ!Ô!Ð!ó    Ú__©Ú__name__©r   Únamer   s   `  r   Ú_binary_methodr      s2   ø€ ð"ð "ð "ð "ð "ð "˜�M�M�M€D„MØ€Kr   c                 ó(   ‡ — ˆ fd„}d|› d�|_         |S )zAImplement a reflected binary method with a ufunc, e.g., __radd__.c                 óH   •— t          |¦  «        rt          S  ‰|| ¦  «        S r   r   r   s     €r   r   z&_reflected_binary_method.<locals>.func   s+   ø€ Ý  Ñ'Ô'ð 	"Ý!Ð!Øˆu�U˜DÑ!Ô!Ð!r   Ú__rr   r   r   s   `  r   Ú_reflected_binary_methodr      s2   ø€ ð"ð "ð "ð "ð "ð #˜$�N�N�N€D„MØ€Kr   c                 ó(   ‡ — ˆ fd„}d|› d�|_         |S )zAImplement an in-place binary method with a ufunc, e.g., __iadd__.c                 ó"   •—  ‰| || f¬¦  «        S )N)Úout© r   s     €r   r   z$_inplace_binary_method.<locals>.func&   s   ø€ Øˆu�T˜5 t gÐ.Ñ.Ô.Ð.r   Ú__ir   r   r   s   `  r   Ú_inplace_binary_methodr#   $   s0   ø€ ð/ð /ð /ð /ð /à"˜$�N�N�N€D„MØ€Kr   c                 ó`   — t          | |¦  «        t          | |¦  «        t          | |¦  «        fS )zEImplement forward, reflected and inplace binary methods with a ufunc.)r   r   r#   )r   r   s     r   Ú_numeric_methodsr%   ,   s3   € å˜5 $Ñ'Ô'Ý$ U¨DÑ1Ô1Ý" 5¨$Ñ/Ô/ð1ð 1r   c                 ó(   ‡ — ˆ fd„}d|› d�|_         |S )z.Implement a unary special method with a ufunc.c                 ó   •—  ‰| ¦  «        S r   r!   )r   r   s    €r   r   z_unary_method.<locals>.func5   s   ø€ Øˆu�T‰{Œ{Ðr   r   r   r   s   `  r   Ú_unary_methodr(   3   s0   ø€ ðð ð ð ð à!˜�M�M�M€D„MØ€Kr   c                   óÜ  — e Zd ZdZddlmZ dZ eej	        d¦  «        Z
 eej        d¦  «        Z eej        d¦  «        Z eej        d¦  «        Z eej        d	¦  «        Z eej        d
¦  «        Z eej        d¦  «        \  ZZZ eej        d¦  «        \  ZZZ eej        d¦  «        \  ZZ Z! eej"        d¦  «        \  Z#Z$Z% eej&        d¦  «        \  Z'Z(Z) eej*        d¦  «        \  Z+Z,Z- eej.        d¦  «        \  Z/Z0Z1 eej2        d¦  «        Z3 e4ej2        d¦  «        Z5 eej6        d¦  «        \  Z7Z8Z9 eej:        d¦  «        \  Z;Z<Z= eej>        d¦  «        \  Z?Z@ZA eejB        d¦  «        \  ZCZDZE eejF        d¦  «        \  ZGZHZI eejJ        d¦  «        \  ZKZLZM eNejO        d¦  «        ZP eNejQ        d¦  «        ZR eNejS        d¦  «        ZT eNejU        d¦  «        ZVdS )r   aî  Mixin defining all operator special methods using __array_ufunc__.

    This class implements the special methods for almost all of Python's
    builtin operators defined in the `operator` module, including comparisons
    (``==``, ``>``, etc.) and arithmetic (``+``, ``*``, ``-``, etc.), by
    deferring to the ``__array_ufunc__`` method, which subclasses must
    implement.

    It is useful for writing classes that do not inherit from `numpy.ndarray`,
    but that should support arithmetic and numpy universal functions like
    arrays as described in :external+neps:doc:`nep-0013-ufunc-overrides`.

    As an trivial example, consider this implementation of an ``ArrayLike``
    class that simply wraps a NumPy array and ensures that the result of any
    arithmetic operation is also an ``ArrayLike`` object:

        >>> import numbers
        >>> class ArrayLike(np.lib.mixins.NDArrayOperatorsMixin):
        ...     def __init__(self, value):
        ...         self.value = np.asarray(value)
        ...
        ...     # One might also consider adding the built-in list type to this
        ...     # list, to support operations like np.add(array_like, list)
        ...     _HANDLED_TYPES = (np.ndarray, numbers.Number)
        ...
        ...     def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
        ...         out = kwargs.get('out', ())
        ...         for x in inputs + out:
        ...             # Only support operations with instances of
        ...             # _HANDLED_TYPES. Use ArrayLike instead of type(self)
        ...             # for isinstance to allow subclasses that don't
        ...             # override __array_ufunc__ to handle ArrayLike objects.
        ...             if not isinstance(
        ...                 x, self._HANDLED_TYPES + (ArrayLike,)
        ...             ):
        ...                 return NotImplemented
        ...
        ...         # Defer to the implementation of the ufunc
        ...         # on unwrapped values.
        ...         inputs = tuple(x.value if isinstance(x, ArrayLike) else x
        ...                     for x in inputs)
        ...         if out:
        ...             kwargs['out'] = tuple(
        ...                 x.value if isinstance(x, ArrayLike) else x
        ...                 for x in out)
        ...         result = getattr(ufunc, method)(*inputs, **kwargs)
        ...
        ...         if type(result) is tuple:
        ...             # multiple return values
        ...             return tuple(type(self)(x) for x in result)
        ...         elif method == 'at':
        ...             # no return value
        ...             return None
        ...         else:
        ...             # one return value
        ...             return type(self)(result)
        ...
        ...     def __repr__(self):
        ...         return '%s(%r)' % (type(self).__name__, self.value)

    In interactions between ``ArrayLike`` objects and numbers or numpy arrays,
    the result is always another ``ArrayLike``:

        >>> x = ArrayLike([1, 2, 3])
        >>> x - 1
        ArrayLike(array([0, 1, 2]))
        >>> 1 - x
        ArrayLike(array([ 0, -1, -2]))
        >>> np.arange(3) - x
        ArrayLike(array([-1, -1, -1]))
        >>> x - np.arange(3)
        ArrayLike(array([1, 1, 1]))

    Note that unlike ``numpy.ndarray``, ``ArrayLike`` does not allow operations
    with arbitrary, unrecognized types. This ensures that interactions with
    ArrayLike preserve a well-defined casting hierarchy.

    é    )Úumathr!   ÚltÚleÚeqÚneÚgtÚgeÚaddÚsubÚmulÚmatmulÚtruedivÚfloordivÚmodÚdivmodÚpowÚlshiftÚrshiftÚandÚxorÚorÚnegÚposÚabsÚinvertN)Wr   Ú
__module__Ú__qualname__Ú__doc__Únumpy._corer+   ÚumÚ	__slots__r   ÚlessÚ__lt__Ú
less_equalÚ__le__ÚequalÚ__eq__Ú	not_equalÚ__ne__ÚgreaterÚ__gt__Úgreater_equalÚ__ge__r%   r2   Ú__add__Ú__radd__Ú__iadd__ÚsubtractÚ__sub__Ú__rsub__Ú__isub__ÚmultiplyÚ__mul__Ú__rmul__Ú__imul__r5   Ú
__matmul__Ú__rmatmul__Ú__imatmul__Útrue_divideÚ__truediv__Ú__rtruediv__Ú__itruediv__Úfloor_divideÚ__floordiv__Ú__rfloordiv__Ú__ifloordiv__Ú	remainderÚ__mod__Ú__rmod__Ú__imod__r9   Ú
__divmod__r   Ú__rdivmod__ÚpowerÚ__pow__Ú__rpow__Ú__ipow__Ú
left_shiftÚ
__lshift__Ú__rlshift__Ú__ilshift__Úright_shiftÚ
__rshift__Ú__rrshift__Ú__irshift__Úbitwise_andÚ__and__Ú__rand__Ú__iand__Úbitwise_xorÚ__xor__Ú__rxor__Ú__ixor__Ú
bitwise_orÚ__or__Ú__ror__Ú__ior__r(   ÚnegativeÚ__neg__ÚpositiveÚ__pos__ÚabsoluteÚ__abs__rC   Ú
__invert__r!   r   r   r   r   ;   sš  € € € € € ðMð Mð\ (Ð'Ð'Ð'Ð'Ð'à€Ið
 ˆ^˜BœG TÑ*Ô*€FØˆ^˜BœM¨4Ñ0Ô0€FØˆ^˜BœH dÑ+Ô+€FØˆ^˜BœL¨$Ñ/Ô/€FØˆ^˜BœJ¨Ñ-Ô-€FØˆ^˜BÔ,¨dÑ3Ô3€Fð #3Ð"2°2´6¸5Ñ"AÔ"AÑ€GˆX�xØ"2Ð"2°2´;ÀÑ"FÔ"FÑ€GˆX�xØ"2Ð"2°2´;ÀÑ"FÔ"FÑ€GˆX�xØ+;Ð+;Ø
Œ	�8ñ,ô ,Ñ(€J�˜[à.>Ð.>Ø
Œ˜	ñ/#ô /#Ñ+€K�˜|à1AÐ1AØ
Œ˜ñ2%ô 2%Ñ.€L�- à"2Ð"2°2´<ÀÑ"GÔ"GÑ€GˆX�xØ� ¤	¨8Ñ4Ô4€JØ*Ð*¨2¬9°hÑ?Ô?€Kð #3Ð"2°2´8¸UÑ"CÔ"CÑ€GˆX�xØ+;Ð+;Ø
Œ�xñ,!ô ,!Ñ(€J�˜[à+;Ð+;Ø
Œ˜ñ,"ô ,"Ñ(€J�˜[à"2Ð"2°2´>À5Ñ"IÔ"IÑ€GˆX�xØ"2Ð"2°2´>À5Ñ"IÔ"IÑ€GˆX�xØ/Ð/°´¸tÑDÔDÑ€FˆG�Wð ˆm˜BœK¨Ñ/Ô/€GØˆm˜BœK¨Ñ/Ô/€GØˆm˜BœK¨Ñ/Ô/€GØ�˜rœy¨(Ñ3Ô3€J€J€Jr   N)	rF   Ú__all__r   r   r   r#   r%   r(   r   r!   r   r   ú<module>r’      s¯   ððð ð #Ð
#€ðð ð ðð ð ðð ð ðð ð ð1ð 1ð 1ðð ð ðy4ð y4ð y4ð y4ð y4ñ y4ô y4ð y4ð y4ð y4r   