I am trying to do some (de)convolution with audio samples. I have one sample s and the same sample with some filters added on top of it s_f
The rank(x)
returns the rank of matrix. In other words number of dimensions it contains. Please check whether ranks of s
and f
are the same before call to signal.convolve()
. Otherwise you will receive an exception you quote.
I have no idea why deconvolution may return something with more dimensions than given input. This requires deeper investigation I don't have time for.