ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> C++-sig
C++-sig
Re: [C++-sig] numarray and boost.python
by Philip Austin other posts by this author
Aug 3 2003 4:07AM messages near this date
[C++-sig] numarray and boost.python | [C++-sig] Re: Boost.Python unnamed enums at global scope
Paul F. Kunz writes:
 >     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...

Right, the boost numeric support can be toggled between Numeric
and numarray using 

numeric::array::set_module_and_type

Currently we set this to use Numeric in num_test_mod.cpp -- we'll
switch to numarray after it includes support for object arrays
(presumably this is coming in v. 0.7).

Just to reiterate, boost::python and Numpy can be connected using
boost::python::numeric::array without num_util, we are just providing
some utility functions we find useful in our own code.

Regards, Phil


Voice: (604) 822-2175
Fax:   (604) 822-6088
email: paustin@[...].ca

Associate Professor
Atmospheric Sciences Programme
Department of Earth and Ocean Sciences
The University of British Columbia
6339 Stores Road
Vancouver, BC  V6T 1Z4


_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Paul F. Kunz
Philip Austin

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved