def fft(a, b=None, axis=0, threads=1, **kw): if b is None: return numpy.fft.fft(a, axis=axis) else: b[:] = numpy.fft.fft(a, axis=axis) return b