[Numpy-discussion] Numpy and C++ integration...

Gael Varoquaux gael.varoquaux@normalesup....
Tue Feb 5 04:50:09 CST 2008


On Tue, Feb 05, 2008 at 11:48:37AM +0100, Sebastian Haase wrote:
> Thanks fr the reply.
> How about "manual" overloading. I mean, if -- for example -- I have
> two functions mmms_b and mmms_i in C, I could still use ctypes; could
> I then "merge" them into one python function, which "re-routes"
> depending on the argument dtype !?

Yes, that's exactly what I do (except I rarely use C++, so I reroute to
different C functions). It doesn't scale well, but it's OK if you have
only a few functions to worry about.

Gaël


More information about the Numpy-discussion mailing list