Repeat an array over a given dimension.

rep_array_dim(x, rep_dim, n)

Arguments

x

array.

rep_dim

dimension to extend.

n

number of times to repeat.

Value

extended array.