tile
Construct an array by repeating A the number of times given by reps.The input array.
The number of repetitions of
A along each axis. If reps has length d, the result will have dimension of max(d, A.ndim).ndarray - The tiled output array.
Description
IfA.ndim < d, A is promoted to be d-dimensional by prepending new axes. So a shape (3,) array is promoted to (1, 3) for 2-D replication, or shape (1, 1, 3) for 3-D replication.
If A.ndim > d, reps is promoted to A.ndim by prepending 1’s to it. Thus for an A of shape (2, 3, 4, 5), a reps of (2, 2) is treated as (1, 1, 2, 2).
Examples
See Also
repeat- Repeat elements of an arraybroadcast_to- Broadcast an array to a new shape
repeat
Repeat each element of an array after themselves.Input array.
The number of repetitions for each element.
repeats is broadcasted to fit the shape of the given axis.The axis along which to repeat values. By default, use the flattened input array, and return a flat output array.
ndarray - Output array which has the same shape as a, except along the given axis.
Examples
See Also
tile- Tile an arrayunique- Find the unique elements of an array
