Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は3次元のNumPy配列を持っています、例えば
a = np.random.random((2,3,5))
最後の2つの軸を転置したい、つまり
b = a.transpose(0,2,1)
しかし、いじられたストライドでのビューは必要ありません。実際に配列をコピーして、メモリ内で並べ替えたい。これを達成するための最良の方法は何ですか?