o
    T=ºi¥  ã                   @  sþ   d dl mZ ddlmZmZ ddlmZ ddlmZ ddlm	Z	m
Z
 d dlmZmZmZmZ er6ddlmZ d d	lZd	d
dœd(dd„Zd	d
dœd(dd„Zd	d
dœd(dd„Zd	d	d
dœd)dd„Zd	dd
dœd*d"d#„Zd	d	d
dœd)d$d%„Zd	dd
dœd*d&d'„Zd	S )+é    )Úannotationsé   )Ú_floating_dtypesÚ_numeric_dtypes)ÚArray)Úasarray)Úfloat32Úfloat64)ÚTYPE_CHECKINGÚOptionalÚTupleÚUnion)ÚDtypeNF©ÚaxisÚkeepdimsÚxr   r   ú%Optional[Union[int, Tuple[int, ...]]]r   ÚboolÚreturnc               C  ó*   | j tvr	tdƒ‚t tj| j||d�¡S )Nz&Only numeric dtypes are allowed in maxr   )Údtyper   Ú	TypeErrorr   Ú_newÚnpÚmaxÚ_array©r   r   r   © r   úlC:\Users\psant\Downloads\PAF backend\school\venv\Lib\site-packages\numpy/array_api/_statistical_functions.pyr      ó   
r   c               C  r   )Nz.Only floating-point dtypes are allowed in meanr   )r   r   r   r   r   r   Úmeanr   r   r   r   r   r!      r    r!   c               C  r   )Nz&Only numeric dtypes are allowed in minr   )r   r   r   r   r   r   Úminr   r   r   r   r   r"   +   r    r"   ©r   r   r   r   úOptional[Dtype]c               C  sB   | j tvr	tdƒ‚|d u r| j tkrt}t tj| j	|||d�¡S )Nz'Only numeric dtypes are allowed in prod)r   r   r   )
r   r   r   r   r	   r   r   r   Úprodr   ©r   r   r   r   r   r   r   r%   7   s
   
r%   g        )r   Ú
correctionr   r'   úUnion[int, float]c               C  ó,   | j tvr	tdƒ‚t tj| j|||d�¡S )Nz-Only floating-point dtypes are allowed in std©r   Zddofr   )r   r   r   r   r   r   Ústdr   ©r   r   r'   r   r   r   r   r+   H   ó   
	r+   c               C  sB   | j tvr	tdƒ‚|d u r| j tkrt}t tj| j	|||d�¡S )Nz&Only numeric dtypes are allowed in sumr#   )
r   r   r   r   r	   r   r   r   Úsumr   r&   r   r   r   r.   V   s
   
r.   c               C  r)   )Nz-Only floating-point dtypes are allowed in varr*   )r   r   r   r   r   r   Úvarr   r,   r   r   r   r/   h   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   )Ú
__future__r   Z_dtypesr   r   Z_array_objectr   Z_creation_functionsr   r   r	   Útypingr
   r   r   r   Z_typingr   Znumpyr   r   r!   r"   r%   r+   r.   r/   r   r   r   r   Ú<module>   sD    ûûûúúúú