Boost logo

Ublas :

Subject: Re: [ublas] vector_of_vector?
From: er (erwann.rogard_at_[hidden])
Date: 2009-07-06 13:54:00


er wrote:
> Hello,
>
> I have not used ublas in a while, so sorry if my questions are trivial.
>
> I need a data structure, Dat, that is like vector of vectors and that I
> can use in combination with boost/range.hpp 's functionality. For example:
>
> typedef range_value<Dat> range_;
> typedef range_value<row_> elem_;
>
> Dat_ dat; //fill
> elem_ e22 = next(next(begin(dat),2),2).
>
> I though vector_of_vector would do it, but apparently not. I'd like to
> hear your suggestions. Thanks.
>

hmmm, I'm looking at multiarray/views, maybe more advisable?