How to efficiently shuffle some values of a numpy array while keeping their relative order?

前端 未结 0 1876
遥遥无期
遥遥无期 2021-01-15 23:20

I have a numpy array and a mask specifying which entries from that array to shuffle while keeping their relative order. Let\'s have an example:



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