Le 10/02/2012 10:00, Volker Braun a écrit : > I recently note that there is no C++ array template library shipped with > Sage. I think this is an impediment for more serious numerical > computations. The whole Cython thing is really nice to speed up Python > code, but if you are serious about avoiding heap allocation of array > entries then Cython becomes less elegant. So I would like to start some > discussion about this ;-) > > One possibility is blitz++ (http://www.oonumerics.org/blitz/). Others > would be Eigen, boost::ublas, or boost::mtl, I made a tentative spkg here: > > http://www.stp.dias.ie/~vbraun/Sage/spkg/blitz-20120201.spkg >
1) blitz++ is *not* a matrix template library, but an *array* template lib. There is the beginning of a class "matrix", but this is very few. 2) actually, blitz++ is already in Sage, included in scipy: ./sage-4.7.1/local/lib/python2.6/site-packages/scipy/weave/blitz So, may be it would be better to make a binding with scipy's blitz++? I have used blitz++ for a long time in my C++ codes: this is a very nice an efficient library: the most spectacular is the implementation of the "expression template" method, that Veldhuizen invented. I have tried boost::ublas: this is *not* efficient. Yours t. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
<<attachment: tdumont.vcf>>