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!