[C++-sig] datastructure to numpy and back
Georg Holzmann
grh at mur.at
Mon Oct 15 20:07:37 CEST 2007
Hallo!
I know this was discussed quite some times, but I did find that many
workarounds and not really a common way how to do that with Boost.Python
... so I am a little bit confused ...
My problem: I have a class with some (big) custom C++ matrix types and I
want to write some getters/setters for them to/from numpy arrays, where
I want to avoid copies of the data.
So is there a common way to do this ?
(e.g. num_util from
http://www.eos.ubc.ca/research/clouds/software/pythonlibs/num_util/num_util_release2/Readme.html
?)
Or can maybe someone link me to some docu or examples which already did
this ? (it must be quite common ...)
Many thanks for any hint,
LG
Georg
More information about the Cplusplus-sig
mailing list