Closed Alexnavi44 closed 9 months ago
thanks @Alexnavi44 : why not using fft[i] as out
, so that would work "inplace" ?
something like: (I don't think we need to convert to abs for 0, as -0 and +0 are the same in python here I think:)
elif whiten_type == "HANN":
np.divide(fft[i], np.abs(fft[i]), out=fft[i], where=fft[i]!=0)
fft[i][:porte1] *= 0.0
references to #291