Consider A = [ 200000 x 1]
vector. I have another vector idx = [200000x1]
. I would like to tile A
such that every ith
element of A is tiled idx(i)
times.
Eg:
A idx output
2 2 2
3 1 2
4 3 3
5 1 4
. . 4
. . 4
. . 5
. . .
Any non-looping ideas?