473,704 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

numpy, numarray, or numeric?

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
Feb 16 '07 #1
4 3374
On Feb 15, 5:40 pm, "Christian Convey" <christian.con. ..@gmail.com>
wrote:
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
Use numpy; it is the "officially blessed one" that you refer to. It
has all of the advantages of the other two.

Numeric was the first library, but it had some drawbacks that led some
people to develop Numarray, which had some additional features.
Finally, the numpy project was started to unify the two groups by
providing some of the new features in a code base consistent with the
old library as well.

Feb 16 '07 #2
On Feb 15, 4:40 pm, "Christian Convey" <christian.con. ..@gmail.com>
wrote:
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

Hi,

yeah numpy is the newest one. It has only one drawback, there is no
comprehensive documentation available that would be free but of course
you could buy one. numpy is very similar to the other two packages but
not identical that means one has always some troulbe finding out how
things work. For example, in numarray you can calculate the
eigenvectors of a matrix with eigenvectors(A) , in numpy it is eig(A).
This looks similar, but the difference is that in numarray the
eigenvectors are returned as rows and in numpy as columns.

If someone knows of a free manual, let me know.

Frank

Feb 16 '07 #3
On Feb 15, 11:23 pm, "Frank" <super...@gmail .comwrote:
On Feb 15, 4:40 pm, "Christian Convey" <christian.con. ..@gmail.com>
wrote:
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

Hi,

yeah numpy is the newest one. It has only one drawback, there is no
comprehensive documentation available that would be free but of course
you could buy one. numpy is very similar to the other two packages but
not identical that means one has always some troulbe finding out how
things work. For example, in numarray you can calculate the
eigenvectors of a matrix with eigenvectors(A) , in numpy it is eig(A).
This looks similar, but the difference is that in numarray the
eigenvectors are returned as rows and in numpy as columns.

If someone knows of a free manual, let me know.

Frank

Frank,

I bought the manual, and I do recommend it, but I find the most useful
documentation is in the docstrings, which I view via "pydoc -g" and
then view in a browser.

Rick

Feb 16 '07 #4
In article <11************ *********@l53g2 000cwa.googlegr oups.com>,
"RickMuller " <rp******@gmail .comwrote:
Use numpy; it is the "officially blessed one" that you refer to. It
has all of the advantages of the other two.

Numeric was the first library, but it had some drawbacks that led some
people to develop Numarray, which had some additional features.
Finally, the numpy project was started to unify the two groups by
providing some of the new features in a code base consistent with the
old library as well.
I agree completely, having converted all my code from Numeric to NumPy.

Just my 2 cents.

-- Lou Pecora (my views are my own) REMOVE THIS to email me.
Feb 18 '07 #5

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

Similar topics

2
2957
by: Marc Schellens | last post by:
Following the NumPy documentation, I took over some C code, but run into an error. Does anybody have a suggestion? Thanks, marc gdlpython.cpp:225: `PyArray_Type' undeclared (first use this function) #include <python2.3/Python.h>
2
3272
by: Pepijn Kenter | last post by:
Hi all. I'm new to python and want to use it for an assignment. I have succesfully implemented a galois field class including the _repr__, __mul__, __div__, __add__ and __sub__ methods. Basically a galois field is an integer modulo a prime number. Now I want to make a matrix of these galois field objects using the numpy library. Constructing, printing and multiplying arrays of GF's works fine. However there are several functions that...
22
2003
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 ?
20
2579
by: mclaugb | last post by:
Has anyone recompiled the Scientific Computing package using NumPy instead of Numeric? I need a least squares algorithm and a Newton Rhaphson algorithm which is contained in Numeric but all the documentation out there says that Numeric is crap and all code should be using NumPy. Thanks, Bryan
10
2231
by: Bryan | last post by:
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/software_hardware/numarray
15
2521
by: greg.landrum | last post by:
After using numeric for almost ten years, I decided to attempt to switch a large codebase (python and C++) to using numpy. Here's are some comments about how that went. - The code to automatically switch python stuff over just kind of works. But it was a 90% solution, I could do the rest by hand. Of course, the problem is that then the code is still using the old numeric API, so it's not a long term solution. Unfortunately, to switch to...
0
1994
by: robert | last post by:
just a note - some speed comparisons : 0.60627370238398726 0.42836673376223189 0.36965815487747022 0.016557970357098384 0.15692469294117473 0.01951756438393204
2
2791
by: robert | last post by:
in Gnuplot (Gnuplot.utils) the input array will be converted to a Numeric float array as shown below. When I insert a numpy array into Gnuplot like that below, numbers 7.44 are cast to 7.0 Why is this and what should I do ? Is this bug in numpy or in Numeric? >>m #numpy array array(, , , ..., ,
2
3967
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 I've tried using numpy.numarray.linear_algebra.inverse and...
0
8767
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8687
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9272
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8977
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7891
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5931
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4439
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2483
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2080
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.