
    
9jB                    4    S SK Jr  S SKrS SKJr  S rSS jrg)    )annotationsN)_corec                \    [        U5      n[        U5      nUR                  S5      [        U5      :X  a5  [	        U [
        R                  5      (       a  [
        R                  " U SUS9$ [
        R                  " U SUS9nX4R                  :  a  SUR                  U-
  -  U-   n[        S [        UR                  U5       5       5      nUR                  S:X  a  [
        R                  " XTR                  S9$ / n/ n[        UR                  U5       H  u  pU	S:X  a$  UR                  U5        UR                  U5        M/  US:X  a$  UR                  U5        UR                  U	5        MY  UR                  S5        UR                  U5        UR                  U	5        UR                  U5        M     [
        R                  " XtR                  S9n
U
R                  (       a&  [        R                   " UR#                  U5      U
5        U
R#                  U5      $ ! [         a    U4n GNf = f)	a  Construct an array by repeating A the number of times given by reps.

Args:
    A (cupy.ndarray): Array to transform.
    reps (int or tuple): The number of repeats.

Returns:
    cupy.ndarray: Transformed array with repeats.

.. seealso:: :func:`numpy.tile`

   T)copyndminF)r   c              3  .   #    U  H  u  pX-  v   M     g 7fN ).0sts      S/home/wildlama/miniconda3/lib/python3.13/site-packages/cupy/_manipulation/tiling.py	<genexpr>tile.<locals>.<genexpr>#   s     :(9ae(9s   r   )dtype)tuple	TypeErrorlencount
isinstancecupyndarrayarrayndimzipshapesizeemptyr   appendr   elementwise_copyreshape)Arepstupdc	shape_outc_shape	ret_shapedim_innreprets              r   tiler.      s   Dk 	CA
yy|s3xJq$,,$?$? zz!$a00 JJquA.66zaffqj!C':AGGS(9::Ivv{zz)7733GIAGGS)19NN6"V$q[NN6"T"NN1NN6"T"V$ * **Ygg
.C
xxqyy137;;y!!C  gs   H H+*H+c                $    U R                  X5      $ )a"  Repeat arrays along an axis.

Args:
    a (cupy.ndarray): Array to transform.
    repeats (int, list, tuple, or cupy.ndarray):
        The number of repeats.
    axis (int): The axis to repeat.

Returns:
    cupy.ndarray: Transformed array with repeats.

.. seealso:: :func:`numpy.repeat`

)repeat)arepeatsaxiss      r   r0   r0   :   s     88G""    r
   )
__future__r   r   r   r.   r0   r   r4   r   <module>r6      s    "  0"f#r4   