I need to code some cython functions which will be instantiated for several 
different data types.  Very much like what c++ templates are used for.

What approaches can be used to do this?

(I'm guessing some kind of macro text processing.  Does cython use cpp?)

Now suppose in general I need a little more intelligence.  For example, 
suppose I have a function that is templated on a single datatype.  Suppose 
some types internal to that function depend in a (possibly nontrivial way) 
on that datatype.  Same approach?

How about a function templated on multiple datatypes?

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to