Boost logo

Boost :

Subject: Re: [boost] [MultiArray] shape() return type
From: Ronald Garcia (garcia_at_[hidden])
Date: 2009-06-29 10:48:42

Hi Frank,

Yes, I have considered such a thing, though rather than returning a
collection specifically, I have considered upgrading multi_array to
use the Boost.Range concepts. Then there could be versions of shape,
indices, etc. that return a pair of pointers, which could be treated
as Ranges.


On Jun 25, 2009, at 1:50 PM, Frank Mori Hess wrote:

> Hash: SHA1
> Has there ever been any thought to making multi_array::shape() return
> something that models the Collection concept (RandomAccessCollection
> in
> particular I suppose) rather than a raw pointer? This would allow
> the return
> value from shape() to be passed directly to multi_array::reshape() or
> multi_array::resize(), for added convenience. It would also allow a
> debug
> assertion to be added to make sure you don't try to access beyond
> the end of
> the array returned by shape().
> Version: GnuPG v1.4.9 (GNU/Linux)
> iEYEARECAAYFAkpDxwoACgkQ5vihyNWuA4UrlACcDd/AZgM4lab3pFu96TJsc9Om
> 6O0AoL4DCYxWtsNBJBdvaVwp/n3p5h80
> =6Wss
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at