Fast reshaping or squeezing
古いコメントを表示
I'm dealing with big matrix, such as dimension X,Y and Z are respectively around 300, 6 and 200000.
The point is that I'm doing backward regressions along the first dimension starting from row 300 up to the first. In my opinion I can't factorize more. So a for loop is needed for the backward regression.
I'm then using each submatrix A of size 1x6x200000 to perform operations,such as - but not only - A*A' so I need to reshape A to dimension 6x200000.
And here's the problem, this operation made 300 times takes a lot of time overall. Is there any fast solution that could improve the computation time ? Using squeeze gives the same, FYI.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!