skued.repeated_array

skued.repeated_array(arr, num, axes=-1)

Create a composite array from repeated copies of an array

Parameters:
  • arr (ndarray) –

  • num (int or iterable of ints) – Number of copies per axis. If provided as tuple, must be the same length as ‘axes’ parameter. In case of num being 0 or an empty iterable, the inpur arr is returned.

  • axes (int or iterable of ints) – Axis/axes over which to copy.

Returns:

out

Return type:

ndarray

:raises ValueError : If num and axes are tuples of different lengths.: