Back to Numerical Arrays (NumPy)
np.repeat
Repeat elements of an array.
Syntax
np.repeat(arr, repeats, axis?)
Description
Repeat elements of an array.
Parameters
| Name | Description |
|---|---|
| arr | - Input array |
| repeats | - Number of repetitions for each element |
| axis(optional) | - Axis along which to repeat (default: flatten first) |
Returns
Promise<NDArray>