o
    ۾i%                     @   s   d dl mZ dd Zdd Zdd Zdd	 Zed
ddd Zedgd
ddd Zdd Zdd Z	G dd dZ
dd Zdd ZG dd deZdd ZdS )     )	vectorizec                 C      | | S )zAn addition abr   r   _/home/ubuntu/.local/lib/python3.10/site-packages/numba/tests/npyufunc/ufuncbuilding_usecases.pyadd      r	   c                 C   s   | |kS Nr   r   r   r   r   equals	   s   r   c                 C   s   | | S )zA multiplicationr   r   r   r   r   mul   r
   r   c                 C   sJ   |j \}}t|D ]}t|D ]}| ||f |||f  |||f< qq	dS )zA generalized additionN)shaperanger   r   cxyijr   r   r   guadd   s   
"r   T)nopythonc                 C   r   r   r   r   r   r   r   inner   r
   r   zint64(int64, int64)c                 C   r   r   r   r   r   r   r   inner_explicit   r
   r   c                 C   
   t | |S r   )r   r   r   r   r   outer$      
r   c                 C   r   r   )r   r   r   r   r   outer_explicit(   r   r   c                   @      e Zd ZdS )DummyN__name__
__module____qualname__r   r   r   r   r   ,       r   c                 C   sP   t   |j\}}t|D ]}t|D ]}| ||f |||f  |||f< qqd S r   r   r   r   r   r   r   r   	guadd_obj0   s   
"r&   c                 C   sH   t   |j\}}t|D ]}t|D ]}| ||f | |||f< qqd S r   r%   r   r   r   r   guadd_scalar_obj8   s   
r'   c                   @   r   )MyExceptionNr    r   r   r   r   r(   @   r$   r(   c                 C   s   t r   )r(   )r   r   r   r   r   r   guerrorD   s   r)   N)numbar   r	   r   r   r   r   r   r   r   r   r&   r'   	Exceptionr(   r)   r   r   r   r   <module>   s     

