可能重复:
Relationship between scipy and numpy为什么NumPy和SciPy有很多相同的功能?我应该选择哪一个?
例如,NumPy的有window functionsbartlett
,blackman
,hamming
,hanning
,kaiser
,而SciPy的有these and several more,但他们似乎产生相同的输出。
NumPy有numpy.fft.fft2(a, s=None, axes=(-2, -1))
。
SciPy有scipy.fftpack.fft2(x, shape=None, axes=(-2, -1), overwrite_x=0)
。
为什么有重复?只是为了向后兼容?如果是这样,为什么他们在不同的地方有不同的定义?在写新东西时我应该选择哪一个?
请参阅http://stackoverflow.com/questions/6200910/relationship-between-scipy-and-numpy – NPE
@aix:这不是关于numpy功能transcluded到scipy。这是关于两者都独立存在的东西,我的问题没有被这些答案所回答 – endolith