473,545 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

numeric/numpy/numarray

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

Jun 13 '06 #1
10 2213

Bryan wrote:
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.o rg, and this time: read the whole page,
especially the section called "Older Array Packages".

Jun 13 '06 #2
Simon Percivall wrote:
Bryan wrote:
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.


Look again at numeric.scipy.o rg, 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

Jun 13 '06 #3
Simon Percivall wrote:
Bryan wrote:
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.o rg, 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 reimplementatio n of NumPy."
http://wiki.python.org/moin/NumArray

so, was Numarray written *before* NumPY, or was it a reimplementatio n 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

Jun 13 '06 #4

Bryan wrote:
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 reimplementatio n of NumPy."
http://wiki.python.org/moin/NumArray

so, was Numarray written *before* NumPY, or was it a reimplementatio n 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?


Bryan,

NumPy is the name of both an old package and a new package. I believe
that NumArray came after the first incarnation, but that the new
incarnation of NumPy is the most recent, and is probably the one you
want.

--
Ben Sizer

Jun 13 '06 #5
Ben Sizer wrote:
Bryan wrote:
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 reimplementatio n of NumPy."
http://wiki.python.org/moin/NumArray

so, was Numarray written *before* NumPY, or was it a reimplementatio n 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?


Bryan,

NumPy is the name of both an old package and a new package. I believe
that NumArray came after the first incarnation, but that the new
incarnation of NumPy is the most recent, and is probably the one you
want.


thanks ben,

i'll use NumPy then. just wish it was clear and obvious which one to use so i
wouldn't have had to ask this question here.

bryan

Jun 13 '06 #6
>>>>> "Bryan" == Bryan <be****@gmail.c om> writes:

Bryan> hi, what is the difference among numeric, numpy and
Bryan> numarray? i'm going to start using matplotlib soon and i'm
Bryan> not sure which one i should use.

numpy is the successor to numarray and Numeric. All three do
basically the same thing. You should use numpy.

matplotlib works with all three, you just need to be sure to set your
"numerix" setting to "numpy" in your matplotlibrc file.

numerix : numpy # numpy, Numeric or numarray

On unix like OSes, this file is placed in ~/.matplotlib. On windows
systems, it is usually found in C:\Documents and
Settings\yourna me\.matplotlib

JDH
Jun 13 '06 #7
Bryan <be****@gmail.c om> writes:
on the python wiki
"NumArray is the current reimplementatio n of NumPy."
http://wiki.python.org/moin/NumArray

so, was Numarray written *before* NumPY, or was it a reimplementatio n of NumPy
which implies it came *after* NumPy?


I clarified that wiki page to use the name "Numeric" for the old
version, and to point out that there is "Numpy" which is even newer
than numarray.

Dan
Jun 13 '06 #8
Bryan <be****@gmail.c om> wrote:
...
so, was Numarray written *before* NumPY, or was it a reimplementatio n 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?


I'll voice a heretic thought: me, I'm sticking with good old Numeric
until the situation with the newer packages settles down. Yes, Numeric
is not being developed any more, but to me that also means it won't
"change under me" and break something... and, it serves my personal
computational needs until something equally stable finally arrives. (Of
course, if and when I hit some bug in Numeric that will never be solved,
or need some other add-on package which in turn demands a different
numeric-array-computation underpinning, I'll have to change, but, so
far, I have not found myself in either of these situations).
Alex
Jun 14 '06 #9

"Alex Martelli" <al***@mac.comw rote in message
news:1h******** *************** **@mac.com...
I'll voice a heretic thought: me, I'm sticking with good old Numeric
until the situation with the newer packages settles down.
Not much of a heresy, I think. The numpy site recommends that *new* users
start with numpy but I don't remember the numeric/numpy folks recommending
that happy, experienced numeric users dump it yet. The current development
version of numpy is still labelled as a development version (0.9.8, I
believe) and besides bug fixes, it still made a few tweeks in the user
interface and C-API from the previous version. They are aiming to release
a stable NumPy 1.0 by the end of the summer. Then maybe they will start
pushing it, along with a compatible array interface for Python.

Terry Jan Reedy

Jul 10 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2999
by: Jive | last post by:
Here's my sitch: I use gnuplot.py at work, platform Win32. I want to upgrade to Python 2.4. Gnuplot.py uses extension module Numeric. Numeric is now "unsupported." The documentation says "If you are new to Numerical Python, please use Numarray.". It's not that easy, dangit. The download page for numpy does not contain a 2.4 version of...
0
1504
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade woes: Numeric, gnuplot, and Python 2.4 Date: 2004-12-11 18:45:10 PST > Here's my sitch: > > I use gnuplot.py at work, platform Win32. > I want to...
22
1983
by: J | last post by:
Hi I hope the title of this message indicates my question. I am looking for basic array functionality in Python and it turns out that there are all these packages which are somehow related. Some are allegedly discontinued but still seem to get updated. Could we start a discussion about which package will or may or should survive ?
0
1986
by: robert | last post by:
just a note - some speed comparisons : 0.60627370238398726 0.42836673376223189 0.36965815487747022 0.016557970357098384 0.15692469294117473 0.01951756438393204
2
3957
by: Chris Smith | last post by:
Howdy, I'm a college student and for one of we are writing programs to numerically compute the parameters of antenna arrays. I decided to use Python to code up my programs. Up to now I haven't had a problem, however we have a problem set where we are creating a large matrix and finding it's inverse to solve the problem. To invert the matrix...
5
4118
by: auditory | last post by:
I am a newbie here I am trying to read "space separated floating point data" from file I read about csv module by searching this group, but I couldn't read space separated values with csv. (which may be matter of course..) I also read about numpy.fromfile(file, sep=' ') which i can use. but on my machine(ubuntu linux) numpy is unknown...
4
3367
by: Christian Convey | last post by:
I need to bang out an image processing library (it's schoolwork, so I can't just use an existing one). But I see three libraries competing for my love: numpy, numarray, and numeric. Can anyone recommend which one I should use? If one is considered the officially blessed one going forward, that would be my ideal. Thanks, Christian
5
1270
by: Erik Johnson | last post by:
I am just starting to explore doing some scientific type data analysis using Python, and am a little confused by the different incarnations of modules (e.g., try Google("Python numeric"). There is SciPy, NumPy, NumArray, Numeric... I know some of these are related and some are separate, some are oudated, etc. but can someone sort of give a...
11
2548
by: ZMY | last post by:
Dear all, I am a real newbie for both python and QNX, but I am still trying to compile Numeric-24.2 under QNX4.25 with python 2.2. I got following error message: $ sudo python setup.py install Password: running install
0
7453
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7742
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5318
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4940
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1007
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
692
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.