Boost logo

Ublas :

Subject: [ublas] Help with ublas::matrix and vector initialization/assign usage pattern?
From: Jesse Perla (jesseperla_at_[hidden])
Date: 2008-09-13 13:39:44


What is the current thinking on the best way to initialize matricies and
vectors in ublas with data?
* Static as well as from a file/dynamic? Any good code out there for
loading from a cout type stream with tokenizing each line via spaces/etc.?
* Any hope of boost::assign type support? It would be perfect reasonable to
have it based on just a single access iterator, like blitz does:
 matrix<int> A(2,2);
 A+ = 1, 0,
         0, 1;

 * Is the best method for right now to declare a static C style matrix and
get ublas matrix to construct itself from it? For dynamic to do something
similar? Any good patterns for these sorts of things that take into account
memory management?

-Jesse