|
|
|
Numpy Array Interface Compiled Code Older Packages Download NumPy Buy the Guide |
NumPyThe fundamental package needed for scientific computing with Python is called NumPy. This package contains:
Numeric users should find the transition relatively easy (although not without some effort). There is a module (numpy.oldnumeric.alter_code1) that can make most of the necessary changes to your Python code that used Numeric to work with NumPy's Numeric compatibility module. Users of numarray can also transition their code using a similar module (numpy.numarray.alter_code1) and the numpy.numarray compatibility layer. C-code written to either package can be easily ported to NumPy using "numpy/oldnumeric.h" and "numpy/libnumarray.h" for the Numeric C-API and the Numarray C-API respectively. Sourceforge download site There is a book for sale called "Guide to NumPy" which details the new system. Read the Sample Chapters Questions? Ask them at the numpy-discussion@scipy.org mailing list. Much of the documentation for Numeric and Numarray is applicable to the new NumPy package. However, there are significant feature improvements. A complete guide to the new system has been written by the primary developer, Travis Oliphant. If you want to fully understand the new system, or you just want to encourage further development on NumPy (or SciPy), you should purchase the documentation which is being sold for a relatively brief period of time to help offset the cost of writing the book and producing the Numeric/numarray hybrid, and to help raise money for future development. If the existence of this fee-based book concerns you, Travis has written some responses to FAQs. Free Documentation is available at the scipy website and in the docstrings (which can be extracted using pydoc). Free Documentation for Numeric (most of which is still valid) is here or as a pdf file. Obviously you should replace references to Numeric in that document with numpy (i.e. instead of import Numeric, use import numpy). For about 6 months at the end of 2005, the new package was called SciPy Core (not to be confused with the full SciPy package which remains a separate package), and so you will occasionally see references to SciPy Core floating around. It was decided in January 2006 to go with the historical name of NumPy for the new package. Realize that NumPy (module name numpy) is the new name. Because of the name-change, there were a lot of dicussions that took place on scipy-dev@scipy.org and scipy-user@scipy.org. If you have a question about the new system, you may wish to run a search on those mailing lists as well as the main NumPy list (numpy-discussion@lists.sourceforge.net) The Array Interface
Out of developer discussions between developers of Numarray, Numeric,
and NumPy has arisen the concept of an array
interface. It is the
opinion of many involved that a default N-dimensional array interface
(even leading to a very simple N-dimensional array object and an
N-dimensional array protocol) is what should be pushed for placement in
the Python core. It is doubtful that the community
will want to slow down development of NumPy anytime soon by
placing it the Python core. But the array interface should become
a part of Python as soon as possible. Anybody wanting to push
this forward is welcome to help. |
|
Visitors since February 9, 2005. For web-page improvements, send mail to Travis Oliphant: oliphant.travis@ieee.org |
|