I am trying to use an array to index another array. The goal is to put the value (val) in the first row(2nd axis) a different number of time(num). I am not very good at exp