为什么NumPy和SciPy具有许多相同的功能?我该选哪个? [英] Why do NumPy and SciPy have a lot of the same functions? Which should I prefer?
本文介绍了为什么NumPy和SciPy具有许多相同的功能?我该选哪个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
scipy和numpy之间的关系
Possible Duplicate:
Relationship between scipy and numpy
例如,NumPy具有窗口函数 blackman
,hamming
,hanning
,kaiser
,而SciPy具有这些以及其他,但它们似乎产生相同的输出.
For instance, NumPy has window functions bartlett
, blackman
, hamming
, hanning
, kaiser
, while SciPy has these and several more, but they seem to produce identical output.
NumPy具有numpy.fft.fft2(a, s=None, axes=(-2, -1))
.
SciPy具有scipy.fftpack.fft2(x, shape=None, axes=(-2, -1), overwrite_x=0)
.
为什么有重复项?只是为了向后兼容?如果是这样,为什么它们在不同的地方有不同的定义?写新东西时我应该选择哪一个?
Why are there duplicates? Just for backwards compatibility? If so, why are they defined differently in different places? Which should I prefer when writing something new?
推荐答案
查看全文