gpuArray/filter doesn't support multi-channel lag terms?
이전 댓글 표시
It seems that the gpuArray implementation of the filter function doesn't support lag terms with multiple input channels.
For example, the cpu implementation works just fine:
B = 0.5;
A = [1, -0.5];
X = (randn(100,4));
Zi = X(1,:);
Y = filter(B, A , X , Zi);
However, Once I try the gpu implementation,
B = 0.5;
A = [1, -0.5];
X = gpuArray(randn(100,4));
Zi = X(1,:);
Y = filter(B, A , X , Zi);
I get the following error:
Error using gpuArray/filter
Initial conditions must be a vector of length
max(length(a),length(b))-1, or an array with the
leading dimension of size max(length(a),length(b))-1
and with remaining dimensions matching those of x.
Alternatively, the gpu approach does work with multiple channels if I insert [] for the lag term.
Any ideas?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Holidays / Seasons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!