Error while using dct on gpu. Matrix dimensions must agree.
1 回表示 (過去 30 日間)
古いコメントを表示
N=8;
A=gpuArray(rand(N,N,N));
B=dct(A);
0 件のコメント
回答 (1 件)
Edric Ellis
2020 年 3 月 9 日
This appears to be a problem with the gpuArray version of dct. Thanks for reporting this.
2 件のコメント
Paul Kry
2022 年 3 月 31 日
Just installed 2022a, and get "Error using dct. Input gpuArray must be a vector or two-dimensional matrix." Any solution for this on the horizon?
Walter Roberson
2022 年 3 月 31 日
Reshape your input to the same number of rows and [] columns. dct() that. Reshape back.
参考
カテゴリ
Help Center および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!