Interface for numpy C-API <-> simple C++ matrix class
![](https://secure.gravatar.com/avatar/f602eee8ad04f00857cf53a1fbcac019.jpg?s=120&d=mm&r=g)
Hello, we would like to write routines processing numerical python arrays in C++, so that at least boundary checking can be enabled at runtime. While there are a lot of matrix libraries available for C++, I could not find the glue that interfaces such a library to the C-API of numerical python. Seamless access to a minimal C++ library would make the C++ part of programming much easier. Has anyone already written some wrapper/glue code? Thanks and best regards, Stefan -- ------------------------------------------------------------------- Email: Stefan.Heinrichs@uni-konstanz.de Address: Fakulaet fuer Physik, Universitaet Konstanz, Universitaetsstr.10, 78457 Konstanz, Germany Phone: +49 7531 88 3814
![](https://secure.gravatar.com/avatar/cb2d89e55b3f5879597521ef61bc4c6f.jpg?s=120&d=mm&r=g)
On Fri, 15 Feb 2002, Stefan Heinrichs wrote:
That's clear i had the same problem long time ago, and i written a small wrapper to the blitz library (www.oonumerics.org): i hadn't time to iron out all the details so it isn't ready for general release, but it works. I'm courrently using some sort of template skeleton to write modules in python for my phd (it is 4d digital image processing): if you like to help me to develop it in a usable way this should be useful for other people as well. I think someone else has developed such a glue, under scipy (isn't?): just look at that. regards, antonio
![](https://secure.gravatar.com/avatar/718de1c5c11f194993698a8d0301ca3a.jpg?s=120&d=mm&r=g)
You might want to check out the Boost Python Library. It is peer reviewed and seems to get most things correct. It should make writing wrappers a lot easier. -a
![](https://secure.gravatar.com/avatar/718de1c5c11f194993698a8d0301ca3a.jpg?s=120&d=mm&r=g)
Ummmm, it helps if I include the URL. Sorry. http://www.boost.org/libs/python/doc/ -a On Mon, 4 Mar 2002, Andrew P. Lentvorski wrote:
![](https://secure.gravatar.com/avatar/cb2d89e55b3f5879597521ef61bc4c6f.jpg?s=120&d=mm&r=g)
On Fri, 15 Feb 2002, Stefan Heinrichs wrote:
That's clear i had the same problem long time ago, and i written a small wrapper to the blitz library (www.oonumerics.org): i hadn't time to iron out all the details so it isn't ready for general release, but it works. I'm courrently using some sort of template skeleton to write modules in python for my phd (it is 4d digital image processing): if you like to help me to develop it in a usable way this should be useful for other people as well. I think someone else has developed such a glue, under scipy (isn't?): just look at that. regards, antonio
![](https://secure.gravatar.com/avatar/718de1c5c11f194993698a8d0301ca3a.jpg?s=120&d=mm&r=g)
You might want to check out the Boost Python Library. It is peer reviewed and seems to get most things correct. It should make writing wrappers a lot easier. -a
![](https://secure.gravatar.com/avatar/718de1c5c11f194993698a8d0301ca3a.jpg?s=120&d=mm&r=g)
Ummmm, it helps if I include the URL. Sorry. http://www.boost.org/libs/python/doc/ -a On Mon, 4 Mar 2002, Andrew P. Lentvorski wrote:
participants (4)
-
Andrew P. Lentvorski
-
cavallo@kip.uni-heidelberg.de
-
eric
-
Stefan Heinrichs