Boost logo

Ublas :

Subject: Re: [ublas] STL container of matrix_range<matrix<double> >
From: Jesse Perla (jesseperla_at_[hidden])
Date: 2009-07-17 09:42:23

I believe the only solution is a vector of (shared) pointers. You could
iterate through the sub matrices and add them to the vector with push_back
or .reset

Also note that with a smart pointer, you can still easily use bind to
execute STL algorithms on the collection/member functions. See the example

On Fri, Jul 17, 2009 at 8:38 AM, Michael Norel <minorlogic_at_[hidden]> wrote:

> Hi All!
> I want to create STL collection of "sub matrices" of one bigger matrix.
> I tried the "matrix_range<matrix<double> >" but the matrix_range object
> don't have default constructor.
> Please recomend me how to create mapping to data in such case?
> Thanks!
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> Sent to: jesseperla_at_[hidden]