473,378 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 2201

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.org, 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.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

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.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

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 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?


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 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?


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.com> 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\yourname\.matplotlib

JDH
Jun 13 '06 #7
Bryan <be****@gmail.com> writes:
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?


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.com> wrote:
...
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?


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.comwrote 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
Terry Reedy wrote:
"Alex Martelli" <al***@mac.comwrote 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.
My tactic in answering Numeric questions on this list has been to give the numpy
answer if the asker seems new to the field and give the Numeric answer *and* the
(obviously superior) numpy answer otherwise.

But that's mostly my natural politeness and tact (quit laughing. I can hear you
sniggering back there!). We definitely *do* want old hands at Numeric to give
numpy a try now. It's difficult to find the bugs, work out the transition
headaches, and make the right design decisions without feedback from you.

We are trying to get out a 1.0b1 in a couple of weeks. Hopefully, we can get to
1.0b2 by the SciPy conference in mid-August. If you've been holding off on
trying numpy, the 1.0 betas will be the perfect time to jump in. It will also be
your last chance to get your 2 cents in.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Jul 10 '06 #11

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

Similar topics

7
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...
0
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...
22
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....
0
by: robert | last post by:
just a note - some speed comparisons : 0.60627370238398726 0.42836673376223189 0.36965815487747022 0.016557970357098384 0.15692469294117473 0.01951756438393204
2
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...
5
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....
4
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...
5
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...
11
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.