
    `i                     x    d dl mZ d dl Z d Z edd          Z edd          Z edd	          Zdd
ZddZdS )    )_coreNc                 >    t          j        d| z   dd| z  |          S )Ncupy_)ze->?zf->?zd->?zF->?zD->?zout0 = %s(in0))doc)r   create_ufunc)namer   s     g/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/cupy/_logic/content.py_create_float_test_ufuncr
      s3    $	t#	       isfinitezTests finiteness elementwise.

    Each element of returned array is ``True`` only if the corresponding
    element of the input is finite (i.e. not an infinity nor NaN).

    .. seealso:: :data:`numpy.isfinite`

    isinfzgTests if each element is the positive or negative infinity.

    .. seealso:: :data:`numpy.isinf`

    isnanzKTests if each element is a NaN.

    .. seealso:: :data:`numpy.isnan`

    c                     t          |           }	 t          j        |           }n-# t          $ r }| j        }t          d| d          |d}~ww xY wt          j        |||          S )a  Test element-wise for negative infinity, return result as bool array.

    Parameters
    ----------
    x : cupy.ndarray
        Input array.
    out : cupy.ndarray, optional
        A location into which the result is stored. If provided,
        it should have a shape that input broadcasts to.
        By default, None, a freshly- allocated boolean array,
        is returned.

    Returns
    -------
    y : cupy.ndarray
        Boolean array of same shape as ``x``.

    Examples
    --------
    >>> cupy.isneginf(0)
    array(False)
    >>> cupy.isneginf(-cupy.inf)
    array(True)
    >>> cupy.isneginf(cupy.array([-cupy.inf, -4, cupy.nan, 0, 4, cupy.inf]))
    array([ True, False, False, False, False, False])

    See Also
    --------
    numpy.isneginf

    $This operation is not supported for & values because it would be ambiguous.Noutr   cupysignbit	TypeErrordtypelogical_andxr   is_infr   er   s         r	   isneginfr   ,   s    B 1XXFA,q// A A A 9u 9 9 9 : :?@	AA FG5555s   & 
AAAc                     t          |           }	 t          j        |            }n-# t          $ r }| j        }t          d| d          |d}~ww xY wt          j        |||          S )a  Test element-wise for positive infinity, return result as bool array.

    Parameters
    ----------
    x : cupy.ndarray
        Input array.
    out : cupy.ndarray
        A location into which the result is stored. If provided,
        it should have a shape that input broadcasts to.
        By default, None, a freshly- allocated boolean array,
        is returned.

    Returns
    -------
    y : cupy.ndarray
        Boolean array of same shape as ``x``.

    Examples
    --------
    >>> cupy.isposinf(0)
    array(False)
    >>> cupy.isposinf(cupy.inf)
    array(True)
    >>> cupy.isposinf(cupy.array([-cupy.inf, -4, cupy.nan, 0, 4, cupy.inf]))
    array([False, False, False, False, False,  True])

    See Also
    --------
    numpy.isposinf

    r   r   Nr   r   r   s         r	   isposinfr    Y   s    B 1XXFA<??" A A A 9u 9 9 9 : :?@	AA FG5555s   ' 
AAA)N)r   r   r
   r   r   r   r   r     r   r	   <module>r"      s             $#		 		 	! 		 		 	! 		 		*6 *6 *6 *6Z*6 *6 *6 *6 *6 *6r   