U
    ¿|evc  ã                   @   s  d Z ddlZddlZddlZddlmZ ddlmZ ddlZ	ddl
Z
ddlmZmZmZ ddlmZmZmZ ddlmZmZmZmZmZ ddlmZmZmZmZ ddlmZ dd	l m!Z!m"Z" dd
lm#Z# ddl$m%Z% edƒZ&G dd„ de'ƒZ(G dd„ de'ƒZ)G dd„ deddƒƒZ*G dd„ deddƒƒZ+d9dd„Z,e -ej-e .ej-¡ej-e .ej-¡¡Z/dd„ Z0dd„ Z1dd„ Z2d d!„ Z3d"d#„ Z4d$d%„ Z5G d&d'„ d'e'ƒZ6d(d)„ Z7d*d+„ Z8d:d-d.„Z9d;d/d0„Z:e& ;e
j<ej=¡d1d2„ ƒZ>d3d4„ Z?e?e @¡ e&j;ƒ e"d5d6„ ƒZAe!e	jBƒd7d8„ ƒZCdS )<z3
Implementation of functions in the Numpy package.
é    N)Ú
namedtuple)ÚarrayobjÚufunc_dbÚnumpy_support)ÚRegistryÚimpl_ret_new_refÚforce_error_model)ÚtypingÚtypesÚutilsÚcgutilsÚcallconv)Úufunc_find_matching_loopÚselect_array_wrapperÚ
from_dtypeÚ_ufunc_loop_sig)Únpydecl)ÚoverloadÚ	intrinsic)Úerrors)ÚbuiltinsÚnpyimplc                   @   s   e Zd Zdd„ Zdd„ ZdS )Ú_ScalarIndexingHelperc                 C   s   d S ©N© )ÚselfÚloop_indicesÚnamer   r   úM/var/www/website-v5/atlas_env/lib/python3.8/site-packages/numba/np/npyimpl.pyÚupdate_indices,   s    z$_ScalarIndexingHelper.update_indicesc                 C   s   d S r   r   ©r   r   r   r   Ú	as_values/   s    z_ScalarIndexingHelper.as_valuesN©Ú__name__Ú
__module__Ú__qualname__r   r!   r   r   r   r   r   +   s   r   c                   @   s<   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zed
d„ ƒZ	dS )Ú_ScalarHelpera\  Helper class to handle scalar arguments (and result).
    Note that store_data is only used when generating code for
    a scalar ufunc and to write the output value.

    For loading, the value is directly used without having any
    kind of indexing nor memory backing it up. This is the use
    for input arguments.

    For storing, a variable is created in the stack where the
    value will be written.

    Note that it is not supported (as it is unneeded for our
    current use-cases) reading back a stored value. This class
    will always "load" the original value it got at its creation.
    c                 C   sd   || _ || _|| _|| _| tj¡}t |d¡g| _	|tj
krH| |¡nt d¡}t ||¡| _d S ©Né   )ÚcontextÚbuilderÚvalÚ	base_typeÚget_value_typer
   ÚintpÚirÚConstantÚshapeÚbooleanÚget_data_typeÚIntTyper   Úalloca_onceÚ_ptr)r   ÚctxtÚbldr+   ÚtyÚintptyÚltyr   r   r   Ú__init__C   s    z_ScalarHelper.__init__c                 C   s   t ƒ S r   )r   r    r   r   r   Úcreate_iter_indicesN   s    z!_ScalarHelper.create_iter_indicesc                 C   s   | j S r   ©r+   ©r   Úindicesr   r   r   Ú	load_dataQ   s    z_ScalarHelper.load_datac                 C   s   | j  || j¡ d S r   )r*   Ústorer6   )r   r@   r+   r   r   r   Ú
store_dataT   s    z_ScalarHelper.store_datac                 C   s   | j  | j¡S r   )r*   Úloadr6   r    r   r   r   Ú
return_valW   s    z_ScalarHelper.return_valN)
r#   r$   r%   Ú__doc__r<   r=   rA   rC   ÚpropertyrE   r   r   r   r   r&   3   s   r&   c                   @   s   e Zd Zdd„ Zdd„ ZdS )Ú_ArrayIndexingHelperc              
   C   s˜   | j j}| j j tj¡}t t |j	¡d¡}|t
|ƒt
| jƒ d … }t|| j| j jƒD ]:\}}}	| d|	|¡}
| |
¡� | ||¡ W 5 Q R X qXd S )Nr(   ú>)Úarrayr*   r)   r-   r
   r.   r/   r0   r4   ÚwidthÚlenr@   Úzipr1   Úicmp_unsignedÚif_thenrB   )r   r   r   r8   r:   ÚONEr@   ÚsrcÚdstÚdimÚcondr   r   r   r   ^   s    z#_ArrayIndexingHelper.update_indicesc                    s   | j j‰ ‡ fdd„| jD ƒS )zø
        The indexing helper is built using alloca for each value, so it
        actually contains pointers to the actual indices to load. Note
        that update_indices assumes the same. This method returns the
        indices as values
        c                    s   g | ]}ˆ   |¡‘qS r   ©rD   ©Ú.0Úindex©r8   r   r   Ú
<listcomp>t   s     z2_ArrayIndexingHelper.as_values.<locals>.<listcomp>)rJ   r*   r@   r    r   rY   r   r!   l   s    z_ArrayIndexingHelper.as_valuesNr"   r   r   r   r   rH   \   s   rH   )rJ   r@   c                   @   s0   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
S )Ú_ArrayHelperz­Helper class to handle array arguments/result.
    It provides methods to generate code loading/storing specific
    items as well as support code for handling indices.
    c                 C   sn   | j  tj¡}t t |j¡d¡}g }t| j	ƒD ]2}t
 | jt |j¡¡}| j ||¡ | |¡ q0t| |ƒS ©Nr   )r)   r-   r
   r.   r/   r0   r4   rK   ÚrangeÚndimr   r5   r*   rB   ÚappendrH   )r   r:   ÚZEROr@   ÚiÚxr   r   r   r=      s    z _ArrayHelper.create_iter_indicesc              	   C   s$   t j| j| j| j| j| j| j|d�S )N)Údatar1   ÚstridesÚlayoutÚinds)r   Úget_item_pointer2r)   r*   rc   r1   rd   re   r?   r   r   r   Ú_load_effective_addressŠ   s    úz$_ArrayHelper._load_effective_addressc                 C   s&   | j j| j }|  |¡}| | j|¡S r   )r)   Údata_model_managerr,   rh   Úload_from_data_pointerr*   )r   r@   ÚmodelÚptrr   r   r   rA   “   s    
z_ArrayHelper.load_datac                 C   sH   | j }| j}| || j|¡}| | j¡|jks2t‚| ||  |¡¡ d S r   )	r)   r*   Úget_value_as_datar,   r3   ÚtypeÚAssertionErrorrB   rh   )r   r@   ÚvalueÚctxr8   Zstore_valuer   r   r   rC   ˜   s
    z_ArrayHelper.store_dataN)r#   r$   r%   rF   r=   rh   rA   rC   r   r   r   r   r[   w   s
   	r[   )	r)   r*   r1   rd   rc   re   r,   r^   rE   úinput operandc           	   
   C   sÔ   t |tjƒr&|}|j}|  ||||¡}t |tjƒrˆ|  |¡| ||ƒ}t ||j	|j
¡}t ||j|j
¡}t| ||||j|j|j|j
|ƒ	S t |¡tjtjhB ks®t |tjjƒr¼t| |||ƒS td |t|ƒ¡ƒ‚dS )zîreturns an instance of the appropriate Helper (either
    _ScalarHelper or _ArrayHelper) class to handle the argument.
    using the polymorphic interface of the Helper classes, scalar
    and array cases can be handled with the same codezunsupported type for {0}: {1}N)Ú
isinstancer
   ÚOptionalrn   ÚcastÚArrayCompatibleÚ
make_arrayr   Úunpack_tupler1   r^   rd   r[   rc   re   ÚdtypeÚ	unliteralÚnumber_domainr2   ÚscalarsÚ_NPDatetimeBaser&   ÚNotImplementedErrorÚformatÚstr)	r7   r8   ÚinpZtyinpÚwhereÚotyÚaryr1   rd   r   r   r   Ú_prepare_argument    s*       ÿÿÿr…   c                 C   sz   | |krdS d}||  }|| k rv|| }|| }|dkrT||krd|dkrd|d  S n|dkrd|||< |d7 }|d7 }q|S )a¡  Low-level utility function used in calculating a shape for
    an implicit output array.  This function assumes that the
    destination shape is an LLVM pointer to a C-style array that was
    already initialized to a size of one along all axes.

    Returns an integer value:
    >= 1  :  Succeeded.  Return value should equal the number of dimensions in
             the destination shape.
    0     :  Failed to broadcast because source shape is larger than the
             destination shape (this case should be weeded out at type
             checking).
    < 0   :  Failed to broadcast onto destination axis, at axis number ==
             -(return_value + 1).
    r   r(   r   )Úsrc_ndimÚ	src_shapeÚ	dest_ndimÚ
dest_shapeÚ	src_indexÚ
dest_indexZsrc_dim_sizeZdest_dim_sizer   r   r   Ú_broadcast_onto½   s    
rŒ   c              
      sR  dd„ |D ƒ}ˆ  tj¡}‡fdd„}|dƒ}|dƒ}t ˆ ||jd¡}	||jƒ}
t ˆ ||jd¡‰t‡ ‡fd	d
„t|jƒD ƒƒ}|D ]}ˆ  ||¡ q†t	|ƒD ]Ì\}}t
|dƒs´q ||jƒ}t|jƒD ] }ˆ  |j| t ˆ |	|¡¡ qÈˆ ˆ tt||	|
ˆg¡}t ˆ ˆ  d||¡¡�N d|f }tj dd¡}|dk	�rP|d|j|jf 7 }ˆj ˆ t|f¡ W 5 Q R X q |j}t‡ fdd
„|D ƒƒ}t ˆˆ ||¡}t|ƒ}|| }zˆ d|||ƒ¡}W n0 tk
�rð   |j tj!j k�rä‚ | "¡ }Y nX || j#| "¡ f}|ˆ |ƒ}|j}t $ˆ |j|¡}t $ˆ |j%|¡}t&ˆˆ |||j'|j(|j)||ƒ	S )zªUtility function to handle allocation of an implicit output array
    given the target context, builder, output array type, and a list of
    _ArrayHelper instances.
    c                 S   s"   g | ]}t |tjƒr|jn|‘qS r   )rs   r
   rt   rn   ©rW   rb   r   r   r   rZ   ë   s   ÿz _build_array.<locals>.<listcomp>c                    s   ˆ   tj| ¡S r   )Úget_constantr
   r.   r>   )r)   r   r   Úmake_intp_constï   s    z%_build_array.<locals>.make_intp_constr   r(   r‡   r‰   c                 3   s   | ]}t  ˆ ˆ|¡V  qd S r   )r   Úgep_inboundsrV   )r*   r‰   r   r   Ú	<genexpr>ú   s   ÿz_build_array.<locals>.<genexpr>r^   ú<z/unable to broadcast argument %d to output arrayÚlocNz
File "%s", line %d, c                 3   s   | ]}ˆ   |¡V  qd S r   rU   )rW   Údest_shape_addr)r*   r   r   r‘     s   ÿÚ__array_wrap__)*r-   r
   r.   r   r5   r^   Útupler]   rB   Ú	enumerateÚhasattrr1   r�   Úcompile_internalrŒ   Ú_broadcast_onto_sigÚif_unlikelyÚicmp_signedr   Úloc_infoÚgetÚfilenameÚlineÚ	call_convÚreturn_user_excÚ
ValueErrorÚas_arrayr   Ú_empty_nd_implr   Úget_functionr~   Úarray_priorityÚArrayÚ	_getvaluerE   rx   rd   r[   rc   re   ry   )r)   r*   Zarray_tyÚinput_typesÚinputsZintp_tyr�   r`   rP   r‡   rˆ   Zdest_shape_addrsr”   Z
arg_numberÚargZarg_ndimrX   Z
arg_resultÚmsgr“   Zreal_array_tyZdest_shape_tupZ	array_valZarray_wrapper_indexZarray_wrapper_tyZ
array_wrapZout_valZ	wrap_argsr^   r1   rd   r   )r*   r)   r‰   r   Ú_build_arrayå   sŽ    ÿÿ
ÿÿ

ÿ  
þÿÿ
ÿ
ÿÿ
  þr®   c                 C   s    | j dkr|jgS t|jƒS d S r'   )ÚnoutÚreturn_typeÚlist)ÚufuncÚsigr   r   r   Ú_unpack_output_types:  s    
r´   c                 C   s    | j dkr|gS t ||¡S d S r'   )r¯   r   rx   )r²   r*   Úvaluesr   r   r   Ú_unpack_output_valuesA  s    
r¶   c                 C   s$   | j dkr|d S | |||¡S d S )Nr(   r   )r¯   Ú
make_tuple)r²   r)   r*   Útyprµ   r   r   r   Ú_pack_output_valuesH  s    
r¹   c              	      sZ  ‡ ‡fdd„t ||jƒD ƒ}t|ƒ|jk rDtd |j|jt|ƒ¡ƒ‚tt||ƒƒD ]‚\}}|j| t|ƒkr´t	|t
jƒrŒtˆˆ ||j|ƒ}	ntˆˆ t ˆ |¡d ¡|ƒ}	| |	¡ qRˆjrRˆj ˆ |||j|  ¡ qR|d |j… }
||jd … }t|ƒ|jk�st‚tdd„ |D ƒdd„ |
D ƒƒ}|ˆˆ |ƒ}ˆ t
j¡}dd„ |
D ƒ}|d j}dd„ |
D ƒ}td	d„ |D ƒƒ}td
d„ |D ƒƒ}||k�r–d}nd}tjˆ |||d��|}g }tt ||
ƒƒD ].\}\}}| ||¡ | | | ¡ ¡¡ �qÀt|ˆ |j |Ž ƒ}t ||ƒD ]\}}	|	 !||¡ �qW 5 Q R X t"|ˆˆ |j#dd„ |D ƒƒ}t$ˆˆ |j#|ƒS )Nc                    s   g | ]\}}t ˆˆ ||ƒ‘qS r   )r…   )rW   r¬   Ztyarg©r*   r)   r   r   rZ   [  s   ÿz&numpy_ufunc_kernel.<locals>.<listcomp>z+Not enough inputs to {}, expected {} got {}c                 S   s   g | ]
}|j ‘qS r   ©r,   ©rW   Úar   r   r   rZ   v  s     c                 S   s   g | ]
}|j ‘qS r   r»   r¼   r   r   r   rZ   w  s     c                 S   s   g | ]}|  ¡ ‘qS r   )r=   ©rW   r�   r   r   r   rZ   |  s     r   c                 S   s   g | ]}t |tƒr|j‘qS r   )rs   r[   re   r¾   r   r   r   rZ   ƒ  s    
ÿc                 S   s   g | ]}|d kr|‘qS )ÚCr   r�   r   r   r   rZ   …  s      c                 S   s   g | ]}|d kr|‘qS )ÚFr   r�   r   r   r   rZ   †  s      rÀ   r¿   )r.   Úorderc                 S   s   g | ]
}|j ‘qS r   )rE   )rW   Úor   r   r   rZ   ›  s     )%rM   ÚargsrL   ÚninÚRuntimeErrorr   r#   r—   r´   rs   r
   rv   r®   r…   r/   r0   r-   r_   Ú
enable_nrtÚnrtÚincrefr¯   ro   r   r.   r1   r   Ú	loop_nestr   rA   r!   r¶   ÚgeneraterC   r¹   r°   r   )r)   r*   r³   rÃ   r²   Zkernel_classÚ	argumentsÚout_iÚret_tyÚoutputr«   ÚoutputsÚ	outer_sigÚkernelr:   r@   Z	loopshapeZinput_layoutsZnum_c_layoutZnum_f_layoutrÁ   r   Zvals_inra   rX   r¬   Zvals_outZval_outÚoutr   rº   r   Únumpy_ufunc_kernelO  sf    
ÿ  ÿÿ  þþ

rÓ   c                   @   s   e Zd Zdd„ Zdd„ ZdS )Ú_Kernelc                 C   s   || _ || _|| _d S r   )r)   r*   rÐ   )r   r)   r*   rÐ   r   r   r   r<   ¡  s    z_Kernel.__init__c                 C   sX   t |tjƒrDt |tjƒsD|j}| j |d¡}|| j| j||dƒ}|}| j | j|||¡S )zùNumpy uses cast semantics that are different from standard Python
        (for example, it does allow casting from complex to float).

        This method acts as a patch to context.cast so that it allows
        complex to real/int casts.

        Úreal)rs   r
   ÚComplexÚunderlying_floatr)   Úget_getattrr*   ru   )r   r+   ÚfromtyÚtotyÚnewtyÚattrr   r   r   ru   ¦  s    
ÿz_Kernel.castN)r#   r$   r%   r<   ru   r   r   r   r   rÔ      s   rÔ   c                    s   G ‡ ‡fdd„dt ƒ‰ ˆ S )a  Use the ufunc loop type information to select the code generation
    function from the table provided by the dict_of_kernels. The dict
    of kernels maps the loop identifier to a function with the
    following signature: (context, builder, signature, args).

    The loop type information has the form 'AB->C'. The letters to the
    left of '->' are the input types (specified as NumPy letter
    types).  The letters to the right of '->' are the output
    types. There must be 'ufunc.nin' letters to the left of '->', and
    'ufunc.nout' letters to the right.

    For example, a binary float loop resulting in a float, will have
    the following signature: 'ff->f'.

    A given ufunc implements many loops. The list of loops implemented
    for a given ufunc can be accessed using the 'types' attribute in
    the ufunc object. The NumPy machinery selects the first loop that
    fits a given calling signature (in our case, what we call the
    outer_sig). This logic is mimicked by 'ufunc_find_matching_loop'.
    c                       s(   e Zd Z‡‡ ‡fdd„Zdd„ Z‡  ZS )z'_ufunc_db_function.<locals>._KernelImplc                    sv   t ˆ | ƒ |||¡ tˆ|jttˆ|ƒƒ ƒ}| ˆ¡ |j¡| _	t
|j|jƒ| _| j	d krrd}t| ˆj|¡ƒ‚d S )Nz2Don't know how to lower ufunc '{0}' for loop '{1}')Úsuperr<   r   rÃ   r–   r´   Úget_ufunc_inforž   Ú	ufunc_sigÚfnr   rÏ   r«   Ú	inner_sigr~   r   r#   )r   r)   r*   rÐ   Úloopr­   )Ú_KernelImplÚ	__class__r²   r   r   r<   Ò  s     ÿ
z0_ufunc_db_function.<locals>._KernelImpl.__init__c              	      s„   ˆ j }ˆ j}‡ fdd„t||j|jƒD ƒ}tˆ jdƒ� ˆ  ˆ jˆ j||¡}W 5 Q R X ˆ jj}||j	  
ˆ j|¡}ˆ  ||j	|j	¡S )Nc                    s    g | ]\}}}ˆ   |||¡‘qS r   )ru   )rW   r+   ÚintyÚouttyr    r   r   rZ   á  s   ÿzD_ufunc_db_function.<locals>._KernelImpl.generate.<locals>.<listcomp>Únumpy)rá   rÐ   rM   rÃ   r   r)   rà   r*   ri   r°   Úfrom_returnru   )r   rÃ   ÚisigÚosigÚ	cast_argsÚresÚdmmr   r    r   rÊ   Ý  s    
ÿÿz0_ufunc_db_function.<locals>._KernelImpl.generate)r#   r$   r%   r<   rÊ   Ú__classcell__r   ©rã   r²   )rä   r   rã   Ñ  s   rã   )rÔ   )r²   r   rï   r   Ú_ufunc_db_function»  s    rð   c                    sX   ‡ ‡fdd„}t j}|fˆj }tˆjd ƒD ]$}t jf| }|ˆf||žŽ |ƒ q.ˆ S )Nc                    s   t | |||ˆˆ ƒS r   ©rÓ   ©r)   r*   r³   rÃ   ©rÑ   r²   r   r   Údo_ufuncñ  s    z'register_ufunc_kernel.<locals>.do_ufuncr(   )r
   ÚAnyrÄ   r]   r¯   r¨   )r²   rÑ   Úlowerrô   Ú_anyÚin_argsZn_explicit_outÚout_argsr   ró   r   Úregister_ufunc_kernelð  s    rú   Fc                    s.   |rt ‚‡ ‡fdd„}tj}|| |ƒ|ƒ d S )Nc                    s   t | |||ˆˆ ƒS r   rñ   rò   ró   r   r   Úlower_unary_operator  s    z<register_unary_operator_kernel.<locals>.lower_unary_operator)ro   r
   r¨   )Úoperatorr²   rÑ   rö   Úinplacerû   Ú	_arr_kindr   ró   r   Úregister_unary_operator_kernelÿ  s    rÿ   c                    sv   ‡ ‡fdd„}‡ ‡fdd„}t j}t j}||f||f||fg}	|	D ].}
|s^|| f|
žŽ |ƒ qB|| f|
žŽ |ƒ qBd S )Nc                    s   t | |||ˆˆ ƒS r   rñ   rò   ró   r   r   Úlower_binary_operator	  s    z>register_binary_operator_kernel.<locals>.lower_binary_operatorc                    sD   t |ƒ|d f }tj|jf|j|jd f žŽ }t| |||ˆˆ ƒS r\   )r–   r	   Ú	signaturer°   rÃ   rÓ   rò   ró   r   r   Úlower_inplace_operator  s     z?register_binary_operator_kernel.<locals>.lower_inplace_operator)r
   rõ   r¨   )Úopr²   rÑ   rö   rý   r   r  r÷   rþ   Zformal_sigsr³   r   ró   r   Úregister_binary_operator_kernel  s    r  c                 C   s$   G dd„ dt ƒ}t| |||tj|ƒS )z¸Lowering function for +(array) expressions.  Defined here
    (numba.targets.npyimpl) since the remaining array-operator
    lowering functions are also registered in this module.
    c                   @   s   e Zd Zdd„ ZdS )z1array_positive_impl.<locals>._UnaryPositiveKernelc                 W   s
   |\}|S r   r   )r   rÃ   r+   r   r   r   rÊ   (  s    z:array_positive_impl.<locals>._UnaryPositiveKernel.generateN)r#   r$   r%   rÊ   r   r   r   r   Ú_UnaryPositiveKernel'  s   r  )rÔ   rÓ   ÚnpÚpositive)r)   r*   r³   rÃ   r  r   r   r   Úarray_positive_impl!  s    ÿr  c           	   	   C   s  i }| D ]}t |ƒ}t|||ƒ||< qtjjtjjfD ]d}| ¡ D ]V\}}tt|ƒ}|| }|j	dkrvt
||||ƒ qB|j	dkr�t||||ƒ qBtdƒ‚qBq6tjjfD ]n}| ¡ D ]`\}}tt|ƒ}|| }|j	dkrêt
||||dd� q²|j	dk�r
t||||dd� q²tdƒ‚q²q¦d S )Nr(   é   z4There shouldn't be any non-unary or binary operatorsT)rý   )rð   rú   r   ÚNumpyRulesUnaryArrayOperatorÚ_op_mapÚNumpyRulesArrayOperatorÚitemsÚgetattrr  rÄ   rÿ   r  rÅ   ÚNumpyRulesInplaceArrayOperator)	Zufuncsrö   Zkernelsr²   Zdb_funcr  rü   Ú
ufunc_namerÑ   r   r   r   Úregister_ufuncs0  s8    ÿ





ÿ
ÿr  c                    sb   ‡ fdd„}t ˆ tjƒr0tt ˆ j¡ƒ}||ƒS t ˆ tjjƒr^t	ˆ jƒ}tt |¡ƒ}||ƒS dS )zPGiven a string or NumberClass description *desc*, returns the dtype object.
    c                    s"   t  | ¡}|ˆ ƒ}dd„ }||fS )Nc                 S   s   |   ¡ S r   )Úget_dummy_value)r)   r*   r  rÃ   r   r   r   Úcodegen]  s    z9_make_dtype_object.<locals>.from_nb_type.<locals>.codegen)r
   ÚDType)Únb_typer°   r³   r  ©Údescr   r   Úfrom_nb_typeY  s    
z(_make_dtype_object.<locals>.from_nb_typeN)
rs   r
   ÚLiteralr   r  ry   Úliteral_valueÚ	functionsÚNumberClassr€   )Ú	typingctxr  r  r  Úthestrr   r  r   Ú_make_dtype_objectU  s    
r  c                 C   s4   t | tjtjjfƒr dd„ }|S t d | ¡¡‚dS )zKProvide an implementation so that numpy.dtype function can be lowered.
    c                 S   s   t | ƒS r   )r  r  r   r   r   Úimps  s    znumpy_dtype.<locals>.impzunknown dtype descriptor: {}N)rs   r
   r  r  r  r   ÚNumbaTypeErrorr   )r  r   r   r   r   Únumpy_dtypen  s    r"  )rr   )F)F)DrF   ÚmathÚsysÚ	itertoolsÚcollectionsr   Úllvmlite.irr/   rç   r  rü   Únumba.npr   r   r   Únumba.core.imputilsr   r   r   Ú
numba.corer	   r
   r   r   r   Únumba.np.numpy_supportr   r   r   r   Únumba.core.typingr   Únumba.core.extendingr   r   r   Únumba.cpythonr   ÚregistryÚobjectr   r&   rH   r[   r…   r.   ÚCPointerrš   rŒ   r®   r´   r¶   r¹   rÓ   rÔ   rð   rú   rÿ   r  rö   Úposr¨   r  r  Ú
get_ufuncsr  ry   r"  r   r   r   r   Ú<module>   s^   )ÿ)
 
ÿ(UQ5 ÿ
	

"
