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 CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by