[Numpy-discussion] C-API support for numarray added to NumPy (original) (raw)
Travis Oliphant oliphant.travis at ieee.org
Tue Jun 20 05:06:11 EDT 2006
- Previous message (by thread): [Numpy-discussion] Reorder Notification From real-meds.com
- Next message (by thread): [Numpy-discussion] C-API support for numarray added to NumPy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
C-API support for numarray is now checked in to NumPy SVN.
With this support you should be able to compile numarray extensions by changing the include line from numarray/libnumarray.h to numpy/libnumarray.h
You will also need to change the include directories used in compiling by appending the directories returned by numpy.numarray.util.get_numarray_include_dirs()
This is most easily done using a numpy.distutils.misc_util Configuration instance:
config.add_numarray_include_dirs()
The work is heavily based on numarray. I just grabbed the numarray sources and translated the relevant functions to use NumPy's ndarray's.
Please report problems and post patches.
-Travis
- Previous message (by thread): [Numpy-discussion] Reorder Notification From real-meds.com
- Next message (by thread): [Numpy-discussion] C-API support for numarray added to NumPy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]