What is the correct way of linearizing a numpy nd.array such that the internal memory layout is guaranteed to be unchanged?

后端 未结 0 714
囚心锁ツ
囚心锁ツ 2020-12-04 03:50

I would like to know how to turn an n-dimensional numpy array into a linear (1-dimensional) one, such that underlying (linear) memory layout is guaranteed not the be changed

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