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 >> cpp-sig
cpp-sig
[C++-sig] Numpy ndarray as argument or return value using boost python
by Pim Schellart other posts by this author
Oct 12 2009 8:36AM messages near this date
Re: [C++-sig] [Py++] How to wrap default arg as enum with complicated scope? | Re: [C++-sig] Numpy ndarray as argument or return value using boost python
Hi Everyone,

I also posted this to the boost users list.
I tried to find a good example for this but after spending two days on
google and one day getting pyublas to compile I decided to call for
help.
I want to give a numpy ndarray as an argument to a c++ method,
calculate something and return the output as an ndarray to Python.
I would prefer not to use another library (such as PyUblas) for this
so I do not have to add another dependency to my program.
Since the latest information on boost python is quite outdated (uses
numeric) I would like to know the following.

1. Is boost python still maintained or should I switch to another tool.
2. Is numpy supported, and if so,
3. can someone give me a basic example of how to use it.

Kind regards,

Pim Schellart
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@[...].org
http://mail.python.org/mailman/listinfo/cplusplus-sig
Thread:
Pim Schellart
Ravi
Anthony Foglia
Stefan Seefeld

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