Error while using dct on gpu. Matrix dimensions must agree.

1 view (last 30 days)
Mohamed Gharbi
Mohamed Gharbi on 7 Mar 2020
Commented: Walter Roberson on 31 Mar 2022
N=8;
A=gpuArray(rand(N,N,N));
B=dct(A);

Answers (1)

Edric Ellis
Edric Ellis on 9 Mar 2020
This appears to be a problem with the gpuArray version of dct. Thanks for reporting this.
  2 Comments
Walter Roberson
Walter Roberson on 31 Mar 2022
Reshape your input to the same number of rows and [] columns. dct() that. Reshape back.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!