xtensor-fftw icon indicating copy to clipboard operation
xtensor-fftw copied to clipboard

Broadcasting of FFT

Open yoshipon opened this issue 7 years ago • 5 comments

Thank you for developing xtensor-fftw. I would like to request the following extension that will be improve its usability.

It will be better if there is a broadcasting in xtensor-fftw. I'm studying on multi-channel acoustic signal processing, and often have to conduct FFTs to microphones. In numpy, we can broadcast FFT like this way

np.fft.rfft(np.ndarray([M, T]), axis=1).shape

In my case M and T indicates the number of microphones and time frames. This will be simplify codes of such signal processings.

Best,

yoshipon avatar Sep 29 '17 09:09 yoshipon

It might be possible to implement this very efficiently using the multiple FFT functionality of FFTW.

egpbos avatar Oct 03 '17 13:10 egpbos

Thank you for the reply. That's a good idea to use fftw_plan_many_*.

yoshipon avatar Oct 03 '17 15:10 yoshipon

This would be great!

spectre-ns avatar Feb 22 '22 20:02 spectre-ns

could xtensor-fftw offer a wrapper for fftw_plan_many_*? @egpbos

bigpo avatar May 19 '22 03:05 bigpo

Definitely @bigpo. If you have time to make a PR for it, I'd be happy to help you get that merged. Let me know if you need anything.

egpbos avatar May 19 '22 08:05 egpbos