Boost logo

Boost :

From: jhrwalter (walter_at_[hidden])
Date: 2001-12-08 07:25:47


--- In boost_at_y..., Peter Schmitteckert (boost) <boost_at_s...> wrote:
> Salut,
>
> On Friday 07 December 2001 13:37, Toon Knapen wrote:
> > Peter Schmitteckert (boost) wrote:
> > > Allthough a submatrix adapter would be sufficient for me.
> >
> > Do you mean that you would first create a matrix of sufficient
size,
> > then take a submatrix and resizing the latter does not need
reallocation
> > as long as the size of the submatrix is not bigger as the size of
the
> > original matrix. That would indeed cover the `quest for a minimal
number
> > of reallocations`.
>
> Yes, but I think a submatrix should not be allowed to resized
larger than
> the original matrix.

Correct. matrix_range checks it's dimensions against the dimensions
of the underlying matrix.
 
Regards
 
Joerg
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk