问题描述
数字,numpy和numarray有什么区别?我很快就会用matplotlib开始
我不确定应该使用哪一个。
这个页面说,Numarray是一个实现旧的Python数组模块
名为Numeric"
此页面上写着,NumPy来自旧的数字代码库,可以用作数字的替换。
i今天看了matplotlib的例子,如果我没记错的话,
例子没有使用numarray。
所以我有点困惑。
谢谢,
bryan
再看看numeric.scipy.org,这一次:阅读整页,
尤其是名为旧数组包的部分
再看看numeric.scipy.org,这个时间:阅读整个页面,特别是名为旧数组包的部分。
特别是,忽略对SciPy Core的任何引用...更不用说
关于旧NumPy的任何东西,这与更新的无关
NumPy,这就是为什么常见的库(如PyOpenGL)要求NumPy
当SourceForge上的最新下载是0.9.8时,
v23。
Python中的数字库是一个命令式的噩梦。很好
过去一段时间我觉得有什么东西进入了标准库。
-
Ben Sizer
再看看numeric.scipy.org,这一次:阅读整个页面,
尤其是名为旧数组包的部分。
在该页面的末尾,它说:
" Numarray是另一个用于Python的arrayobject的实现br />
数字和NumPy之前。 numarray的赞助商已经表示他们将尽快转移到NumPy,以便最终numarray将逐步淘汰
。
$ python wiki上的b $ b
NumArray是当前NumPy的重新实现。
所以,Numarray在* NumPY之前写过*,或者它是NumPy的重新实现
这意味着它来自* NumPy之后?很明显,Numeric是旧的
而且我读的不再被处理了。离开Numarray和Numpy。
我应该使用这两个中的哪一个?
谢谢,
bryan
hi,
what is the difference among numeric, numpy and numarray? i''m going to start
using matplotlib soon and i''m not sure which one i should use.
this page says, "Numarray is a re-implementation of an older Python array module
called Numeric"
http://www.stsci.edu/resources/softw...dware/numarray
this page says, "NumPy derives from the old Numeric code base and can be used as
a replacement for Numeric."
http://numeric.scipy.org/
i looked at the matplotlib examples today and if i remember correctly, the
examples didn''t use numarray.
so i''m a bit confused.
thanks,
bryan
Look again at numeric.scipy.org, and this time: read the whole page,
especially the section called "Older Array Packages".
Look again at numeric.scipy.org, and this time: read the whole page,
especially the section called "Older Array Packages".
In particular, ignore any references to SciPy Core... Not to mention
anything regarding older NumPy, which is nothing to do with newer
NumPy, which is why common libraries (such as PyOpenGL) ask for NumPy
v23 when the latest download on SourceForge is 0.9.8.
Numeric libraries in Python are a nomenclatural nightmare. It''s well
past time that something made it into the standard library, I feel.
--
Ben Sizer
Look again at numeric.scipy.org, and this time: read the whole page,
especially the section called "Older Array Packages".
at the end of that page, it says:
"Numarray is another implementation of an arrayobject for Python written after
Numeric and before NumPy. Sponsors of numarray have indicated they will be
moving to NumPy as soon as is feasible for them so that eventually numarray will
be phased out."
on the python wiki
"NumArray is the current reimplementation of NumPy."
http://wiki.python.org/moin/NumArray
so, was Numarray written *before* NumPY, or was it a reimplementation of NumPy
which implies it came *after* NumPy? it seems clear that Numeric is the old one
and i read is not being worked on anymore. so that leaves Numarray and numpy.
which of these two should i use?
thanks,
bryan
这篇关于数字/ numpy的/ numarray的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!