o
    Ö°“i:  ã                   @   s   d d„ Z dS )c                 C   sl   | j j }}| j}| j}| j}t||ƒD ]\}}|dk r%||d | 7 }q||d | 7 }q||7 }||fS )zËReturns pointers to the end-points of an array.

    Args:
        a: ndarray
    Returns:
        Tuple[int, int]: pointers to the end-points of an array

    .. seealso:: :func:`numpy.byte_bounds`
    é    é   )ÚdataÚptrÚstridesÚshapeÚitemsizeÚzip)ÚaÚa_lowÚa_highÚ	a_stridesÚa_shapeÚa_item_bytesr   Ústride© r   úJ/home/ubuntu/.local/lib/python3.10/site-packages/cupy/_misc/byte_bounds.pyÚbyte_bounds   s   
r   N)r   r   r   r   r   Ú<module>   s    