Boost logo

Boost :

From: jhrwalter (walter_at_[hidden])
Date: 2001-12-11 05:14:14


--- In boost_at_y..., Peter Schmitteckert (boost) <boost_at_s...> wrote:
> SAlut,
>
> On Saturday 08 December 2001 13:18, you wrote:

[snip]

> > Matrix containers can be organized in different ways: as a
container
> > of containers (e.g. vector<vector<> >) or as an mapping to an 1-D
> > storage container (e.g. matrix (i, j) == vector (i * size2 + j)).
> >
> > In the former case we should define capacity1()/capacity2() to
return
> > the number of allocated rows/columns, in the latter we should
define
> > capacity() to return the number of allocated elements in the 1-D
> > storage container.
>
> So, matrix_range<matrix<T> > allows for reshaping, not just
> creating sub-matrix views ?

No, (efficient) reshape could be an option for matrix types, which
use an 1-D array as storage.
 
Regards
 
Joerg
 


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