The BallTree cython code would be a quick way to test this: the variables DTYPE and DTYPE_t are defined at the top, and all that would need to be templated are these definitions. Though come to think of it, I haven't yet tested compilation with a different DTYPE... Jake
Olivier Grisel wrote: > 2011/10/19 Brian Holt <[email protected]>: > >> This is cross-posted from the scikits.image mailing list; It was so >> interesting, I thought it a waste not to use the opportunity. >> >> We've had a number of discussions on cython types, and how we wish that >> cython would support some sort of templates. This would be very useful for >> the `tree` module (that is currently tied to a 32bit implementation) and a >> number of other modules. >> >> [Ralf Gommers]: scipy.interpolate has Cython code with simple Mako >> templating, look at interpnd.pyx and generate_interpnd.py. If it's flexible >> enough for your needs then it'll be a lot more pleasant than using C++. >> >> This may very well be the solution to the problem. Its very simple and >> doesn't require too much extra effort. Thanks Ralf for suggesting it! >> > > Sounds good. It would be great if someone could submit a pull request > with a proof of concept implementation of one of our cython compiled > extensions so that we can discuss the details on a concrete > scikit-learn specific example. > > (BTW: please do not do this on the minibatch kmeans code as I am > currently refactoring it in a branch to make it faster than the > sofia-ml reference implementation :) > > ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
