Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-12-07 10:10:53

Job Mulder wrote:

> I have some requests for the uBlas and quaternion libraries, call it my
> christmas wish-list ;) These are perhaps different topics, but in my
> current project, they're sort of interwoven. Feel free to pick my mail
> apart.
> background:
> I'm writing a Kalman filter with uBlas, based on Matlab code written by
> my colleagues. I encountered a few points of improvement (IMO). Maybe
> these points are not really supposed to be part of uBlas, in which case
> I would like to see them in some other component ;)
> wish-list:
> *** ublas
> * a solution to the error at the bottom of the mail...
> *assign an array of values to a vector (of known length)
> *assign an array of values to a dense matrix (of known size, serialized
> input)
> *reverse of these operations

Maybe something like this? (vector == ublas::vector)

template<typename T, typename range>
inline vector<T> make_vector (range const& r) {
  vector<T> u (boost::size (r));
  std::copy (boost::begin (r), boost::end (r), u.begin());
  return u;

Boost list run by bdawes at, gregod at, cpdaniel at, john at