o
    WÛ·i‰	  ã                   @  sL   d dl mZ d dlZd dlZddd„Zddd„Zdd„ Zd	d
„ Zdd„ ZdS )é    )ÚannotationsNc                 C  ó   t  t | ¡|||¡S )a#  Returns the string representation of an array.

    Args:
        arr (array_like): Input array. It should be able to feed to
            :func:`cupy.asnumpy`.
        max_line_width (int): The maximum number of line lengths.
        precision (int): Floating point precision. It uses the current printing
            precision of NumPy.
        suppress_small (bool): If ``True``, very small numbers are printed as
            zeros

    Returns:
        str: The string representation of ``arr``.

    .. seealso:: :func:`numpy.array_repr`

    )ÚnumpyÚ
array_reprÚcupyÚasnumpy©ÚarrÚmax_line_widthÚ	precisionÚsuppress_small© r   úI/home/ubuntu/vllm_env/lib/python3.10/site-packages/cupy/_io/formatting.pyr      s   ÿr   c                 C  r   )að  Returns the string representation of the content of an array.

    Args:
        arr (array_like): Input array. It should be able to feed to
            :func:`cupy.asnumpy`.
        max_line_width (int): The maximum number of line lengths.
        precision (int): Floating point precision. It uses the current printing
            precision of NumPy.
        suppress_small (bool): If ``True``, very small number are printed as
            zeros.

    .. seealso:: :func:`numpy.array_str`

    )r   Ú	array_strr   r   r   r   r   r   r      s   ÿr   c                 O  ó   t jt | ¡g|¢R i |¤ŽS )z_Return a string representation of an array.


    .. seealso:: :func:`numpy.array2string`

    )r   Úarray2stringr   r   )ÚaÚargsÚkwargsr   r   r   r   0   s   r   c                 O  r   )zÒFormat a floating-point scalar as a decimal string in positional notation.

    See :func:`numpy.format_float_positional` for the list of arguments.

    .. seealso:: :func:`numpy.format_float_positional`

    )r   Úformat_float_positionalr   r   ©Úxr   r   r   r   r   r   :   ó   r   c                 O  r   )zÒFormat a floating-point scalar as a decimal string in scientific notation.

    See :func:`numpy.format_float_scientific` for the list of arguments.

    .. seealso:: :func:`numpy.format_float_scientific`

    )r   Úformat_float_scientificr   r   r   r   r   r   r   E   r   r   )NNN)	Ú
__future__r   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s    


