def fftpack_lite_rfftb(buf, s, temp_buf=[()]):
n = len(buf)
m = (n - 1) * 2
temp = temp_buf[0]
if m >= len(temp): temp_buf[0] = temp = numpy.empty(m * 2, buf.dtype)
numpy.divide(buf, m, temp[0:n])
temp[n:m] = 0
result = numpy.fft.fftpack_lite.rfftb(temp[0:m], s)
return result
评论列表
文章目录