Would it help to add a new class on the C++ side that is used only for passing array data back and forth between C++ and Python? We have had this before (SimpleArray) and it would be fairly easy to extend the C++ with extra functions in the interface that use SimpleArray instead of std::vector.
Then perhaps we can have one single typemap that hits SimpleArray everywhere and converts it to a NumPy array. And the work would be to add the extra stuff on the C++ side. The advantage would be less complex wrapper code and that Garth and I are capable of handling the complexities on the C++ side. But what I don't understand is why it would be easier to write a typemap for SimpleArray than for std::vector. Both of them use contiguous memory. -- Anders
signature.asc
Description: Digital signature
_______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

