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] Re: ANN: Boost.Python v2
by David Abrahams other posts by this author
Oct 23 2002 9:41PM messages near this date
Re: [C++-sig] type convert: python file <-> C++ FILE* | [C++-sig] Boost V1 build on Solaris
Joe Van Andel <vanandel@[...].edu>  writes:

>  Thanks for your quick response.

No problem.

>  > http://www.boost.org/libs/python/doc/v2/numeric.html
>  
>  
>  Sorry, I guess I missed this.  You do reference Numeric in the
>  reference manual, but I didn't see any reference in the Synopsis or
>  the Tutorial Introduction.  Would you be willing to mention Numeric
>  support in the Synopsis?

Sure. Tell me what you think it should say.

>  Do you have any more examples of accessing Numeric arrays using Boost?

http://www.boost.org/libs/python/test/numpy.cpp
http://www.boost.org/libs/python/test/numpy.py

>  >>That is, I want to pass Numeric Python arrays to my C++ extensions,
>  >>and not have to write my C++ code to be aware of the Numeric
>  >>interfaces (if possible).
>  > I'm not sure what you mean by "not aware of the Numeric interfaces".
>  
>  Sorry, I meant to say the Numeric API, e.g. calls like:
>  PyArray_ISCONTIGUOUS()
>  or
>  PyArray_As2D((PyObject **)&theInput, (char ***)&inP,
>                    &numRays, &numGates,  PyArray_FLOAT);

I don't know if the above meets your needs. The numeric support could
use some fleshing-out, as others have pointed out on this
list. Patches to enhance the existing numeric support would be
gratefully considered.

HTH,
-- 
                    David Abrahams
dave@[...].com * http://www.boost-consulting.com

Building C/C++ Extensions for Python: Dec 9-11, Austin, TX
http://www.enthought.com/training/building_extensions.html


_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig

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