Short Length Convolution Speed Up
이전 댓글 표시
Hi! I need to perform a short-length convolution. The signal length is N=2^18=262144, and the filter length is M=1...64. The most interesting filter length is M=15. The basic solution is to use the filter function. To increase the speed, I use fftfilt, but it is more efficient for long sequences. I need to get a gain in speed compared to the filter function with N=262144 and M=15. What is possible to do in this case?
Сonvolution complexity is M*N, FFT - Nlog2N. So the gain is for M>log2N. In my case M>18. But I have M between 256 and 512. Why?

댓글 수: 8
Matt J
2022년 1월 23일
So the gain is for M>log2N. In my case M>18.
Don't you mean M<log2N and M<18?
Alexander Voznesensky
2022년 1월 23일
Alexander Voznesensky
2022년 1월 23일
Alexander Voznesensky
2022년 1월 23일
Matt J
2022년 1월 23일
It is not necessarily the number of multiplications that matters. If fftfilt is highly parallelized (it probably is), it can be faster than a non-parallelized routine that has lower computational complexity.
Alexander Voznesensky
2022년 1월 23일
Alexander Voznesensky
2022년 1월 23일
편집: Alexander Voznesensky
2022년 1월 23일
채택된 답변
추가 답변 (1개)
Matt J
2022년 1월 23일
0 개 추천
Do you have the Parallel Computing Toolbox and a decently powerful GPU? If so, filter() is enabled for gpuArrays.
카테고리
도움말 센터 및 File Exchange에서 Signal Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
