[Numpy-discussion] What's the most numpythonic way to support multiple types in a C extension?
jsalvati at u.washington.edu
Tue Jun 26 17:53:57 EDT 2012
I want to support multiple types in the index_increment function that I've
I need to check that the first argument's type can support addition, cast
the dataptr to the appropriate type and do the addition operation for that
type. It looks like some of the numpy code uses .c.src files to do
templating. Is that what I want to do here? Is the syntax described
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion