Recommended practice for indexing ndarrray in a tuple with Python

后端 未结 0 1643
北恋
北恋 2021-01-18 12:10

May I know how to properly index ndarray in a tuple,

Naive way I can think of is as follow

idx2=[1,2]
idx_pair = np.tril_indices ( 7, -1 )
n=[i[idx2 ]          


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