It should be just a couple of lines of code to start with. I think Marco has offered to get his fingers on that in a previous post and I believe the developers want this in uBlas pretty soon, as long as a patch is available.
Best
Nasos
> To: ublas@lists.boost.org
> From: erwann.rogard@gmail.com
> Date: Sun, 13 Sep 2009 17:46:33 -0400
> Subject: Re: [ublas] size1 and size2
>
>
> > maybe we start with:
> >
> > miter = begin<tag::major>(MAT);
> > subiter = begin<tag::minor>(miter);
>
> Hi All,
>
> Some of the data-structures I use often are vector of vectors.
>
> What would be required (and that I desire) so I can use ublas without
> changing my code is to overload the functionality of boost/range.hpp as
> follows:
>
> miter = boost::begin(MAT); // calls begin<tag::major>(MAT);
> subiter = boost::begin(*miter); // calls begin<tag::minor>(miter);
>
> Does that seem feasible, reasonable?
>
> Thanks for giving it a thought, if your time permits it.
>
> _______________________________________________
> ublas mailing list
> ublas@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: nasos_i@hotmail.com
Hotmail: Powerful Free email with security by Microsoft. Get it now.