Improving Numpy Performance

前端 未结 5 1205
暖寄归人
暖寄归人 2020-12-08 11:04

I\'d like to improve the performance of convolution using python, and was hoping for some insight on how to best go about improving performance.

I am currently usin

5条回答
  •  离开以前
    2020-12-08 11:37

    A typical optimization for convolution is to use the FFT of your signal. The reason is: the convolution in real space is a product in FFT space. It is often faster to compute the FFT, then the product, and the iFFT of the result than convolve the usual way.

提交回复
热议问题