
    bIg                    :    d dl mZ d dlZd dlmZ  G d de      Zy)    )annotationsN)_CommonWindowc                      e Zd ZdZddZy)
HannWindowzReturns :math:`\\omega_n = \\sin^2\\left( \\frac{\\pi n}{N-1} \\right)` where *N* is the window length.

    See `hann_window <https://pytorch.org/docs/stable/generated/torch.hann_window.html>`_
    Nc                    | j                  |||      \  }}t        j                  |t        j                  z  |z        dz  }| j	                  |||      S )N   )_beginnpsinpi_end)selfsizeoutput_datatypeperiodicniN_1ress          ^/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/reference/ops/op_hann_window.py_runzHannWindow._run   sK    ++dHo>CffR"%%Z#%&!+yysO44    )NN)__name__
__module____qualname____doc__r    r   r   r   r      s    
5r   r   )
__future__r   numpyr
   $onnx.reference.ops._op_common_windowr   r   r   r   r   <module>r       s    #  >	5 	5r   