How to perform an ND coordinate sweep using numpy meshgrid

后端 未结 3 1524
攒了一身酷
攒了一身酷 2021-01-25 23:41

I want to create a grid of sampling points in 4 dimensions. I want the points to span from 0 to 10 with equal spacing in each direction. I tried a few iterations of np.mes

3条回答
  •  再見小時候
    2021-01-26 00:13

    It looks quite complitated to imagine what was done in Quang's answer so I decided to visualise these tricks in case x consists of two points:

提交回复
热议问题