
    
Ng                     6    d dl Zd dlmZ  G d de          ZdS )    N)_CommonWindowc                       e Zd ZdZddZdS )
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                     |                      |||          \  }}t          j        |t          j        z  |z            dz  }|                     |||          S )N   )_beginnpsinpi_end)selfsizeoutput_datatypeperiodicniN_1ress          ]/var/www/html/ai-engine/env/lib/python3.11/site-packages/onnx/reference/ops/op_hann_window.py_runzHannWindow._run   sP    ++dHo>>CfR"%Z#%&&!+yysO444    )NN)__name__
__module____qualname____doc__r    r   r   r   r      s2         
5 5 5 5 5 5r   r   )numpyr	   $onnx.reference.ops._op_common_windowr   r   r   r   r   <module>r      sY        > > > > > >	5 	5 	5 	5 	5 	5 	5 	5 	5 	5r   