BUG: signal.convolve takes longer than it needs to #3623
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.signal
Milestone
While looking into #2651, I noticed that convolve takes longer if the first input is shorter than the second input, even though they are computing the same thing (convolution is commutative):
So the algorithm is taking 80 times as long as it needs to, and could be modified to take the same amount of time regardless of input order, maybe by just checking which input is longer and then internally rearranging them so that the shorter one comes last.
The text was updated successfully, but these errors were encountered: