How to index a numpy array of dimension N with a 1-dimensional array of shape (N,)

后端 未结 0 1568
别那么骄傲
别那么骄傲 2020-12-03 05:24

I would like to index an array of dimension N using an array of size (N,). For example, let us consider a case where N is 2.

import numpy as np
foo = np.arang         


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