[C++-sig] numarray and boost.python

Paul F. Kunz Paul_Kunz at SLAC.Stanford.EDU
Sun Aug 3 02:49:14 CEST 2003


   I'm trying to make an interface between numarray and C++ with
Boost.   After reading the mail archives on this subject, I downloaded
num_util from 

http://www.eos.ubc.ca/research/clouds/num_util.html

Although the software is date 3 July 2003, I found I had to make two
changes for it to compile...

Index: python/num_util.cpp
===================================================================
RCS file: /afs/slac/g/ek/reason_cvs/hippodraw/python/num_util.cpp,v
retrieving revision 1.1
diff -r1.1 num_util.cpp
23c23
<     KindStringMapEntry(PyArray_NTYPES, "PyArray_NTYPES"),
---
> //     KindStringMapEntry(PyArray_NTYPES, "PyArray_NTYPES"),
Index: python/num_util.h
===================================================================
RCS file: /afs/slac/g/ek/reason_cvs/hippodraw/python/num_util.h,v
retrieving revision 1.2
diff -r1.2 num_util.h
5c5,6
< #include <Numeric/arrayobject.h>
---
> /* #include <Numeric/arrayobject.h> */
> #include <numarray/arrayobject.h>

Could someone confirm that I'm on the right track or doing the wrong
thing?




More information about the Cplusplus-sig mailing list