简体   繁体   中英

Using numpy.fft to calculate the multiplication of 2 numbers

Is it possible to use numpy.fft to calculate the multiplication of 2 numbers in python? I know that the simplest way is just a*b , however is it possible to use numpy.fft as a way to calculate it? If yes, is there any sample of the code?

Not in a way that is commonly referred to when one states that you can use the FFT to multiply numbers. That refers to the Schönhage–Strassen algorithm , which uses the number-theoretic discrete Fourier transform , which is distinct from the FFT implemented in numpy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM