Can you use a 1D array to index a 3D array and apply multiplication across a single axis?

前端 未结 0 1094
一生所求
一生所求 2020-12-23 00:03

I am trying to vectorize this process. I have a 4x4x4 matrix. I am trying to multiply the value in [i,0,num[i]] by multiplier i where i is the range(data.shape[0]) and put

相关标签:
回答
  • 消灭零回复
提交回复
热议问题