How to accelerate the permute for 3D matrix

1 回表示 (過去 30 日間)
AniCnx
AniCnx 2021 年 10 月 25 日
コメント済み: James Tursa 2021 年 10 月 25 日
How to accelerate the permute for the matrix 512x512x200 by using version R2020b?
such as
A=randi(512,[512 512 200]);
B=permute(A,[3,2,1]);
  1 件のコメント
James Tursa
James Tursa 2021 年 10 月 25 日
The better question is what are you doing with this result downstream in your code, and is there a way to accomplish what you want to do without permuting the data (which involves deep data copies).

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2021 年 10 月 25 日
You can't. permute works efficiently already.

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by