[C++-sig] ublas vector based arithmetic

Neal D. Becker ndbecker2 at verizon.net
Tue Aug 31 16:57:12 CEST 2004

Recently I proposed using std::vector for arithmetic.  Since then it was
suggested to look at ublas.  I think this is a good idea for my

The intended application is

1) signal processinging/communications
2) vectors of int, double, complex
3) python for high level control to interface to c++ algorithms
4) c++ algorithms operate on relatively large vectors of data, so that
overheads of python/c++ conversion are relatively unimportant.

I agree that ublas would be a useful base, because the C++ algorithm side
could be able to take advantage of the performance features, such as ET.

I have gotten an implementation working, based mostly on Pylinear-0.9 from 
Andreas Kloeckner,ak at ixion.net, http://pylinear.sf.net.  My version is much
smaller, simpler and without all the dependencies, but only handles vectors
(not matrices).  It adds some convenience features, like constructing
vectors from tuples/lists.

If there is interest I can post.

More information about the Cplusplus-sig mailing list