
    `iV                     8    d dl Z d dlmZ d dlmZ d dlmZ d ZdS )    N)_digamma)_gamma)_zetac                     t          j        | |          \  } }d| dz   z  t          j        | dz             z  t	          j        | dz   |          z  }t          j        | dk    t          j        |          |          S )a  Polygamma function n.

    Args:
        n (cupy.ndarray): The order of the derivative of `psi`.
        x (cupy.ndarray): Where to evaluate the polygamma function.

    Returns:
        cupy.ndarray: The result.

    .. seealso:: :data:`scipy.special.polygamma`

    g         g      ?r   )	cupybroadcast_arraysr   gammar   zetawherer   digamma)nxfac2s      r/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/cupyx/scipy/special/_polygamma.py	polygammar      sr      A&&DAqAaC=6<#...AcE11E1EED:a1fh.q114888    )r   cupyx.scipy.specialr   r   r   r    r   r   <module>r      s]     ( ( ( ( ( ( & & & & & & % % % % % %9 9 9 9 9r   