Indexing a numpy array with a list of tuples

https://stackoverflow.com/questions/28491230/indexing-a-numpy-array-with-a-list-of-tuples

X[tuple(zip(*idx1))]

 

 

X[idx2[:,0], idx2[:,1]]
posted @   imoon22  阅读(87)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示