Get ith elements in numpy nested arrays given an array of indices (i1, i2, …)

前端 未结 0 812
暗喜
暗喜 2020-12-23 07:20

Given x, a numpy array:

>>> x
array([[ 1,  2,  3,  4],
       [ 5,  6,  7,  8],
       [ 9, 10, 11, 12]])

And another a

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