Boost logo

Boost :

Subject: Re: [boost] RFC: runtime-flexible arrays
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-02-16 07:40:08

On 02/16/12 01:17, Mathias Gaunard wrote:
> On 02/16/2012 02:42 AM, Bjoern Andres wrote:
>> Hi everyone,
>> I have written a header for runtime-flexible multi-dimensional views and
>> arrays and would love to get comments and feedback from the boost
>> community:
>> tutorial code :
>> main website :
>> doxygen reference doc:
>> git repository :
>> tech report :
> Something else, what we do in NT2 is that we use an iliffe index as
> described in the NRC (Numerical Recipes for C) book. This allows us to
> make a view that extracts an arbitrary rectangle or hypercube and to add
> padding between lines without extra modulo operations.
How would NT2 do a transpose like the one on line 00201 of:

? Judging from a brief look at:

which suggests an iliffe data structure contains pointer
to subarrays, I'd guess that would be more difficult than
if a dope vector data structure, described on the same
web page, were used. With a dope vector, a transpose
would just mean reversing the dope vector. I'm guessing
marray using something like a dope vector. However,
with the iliffe data structure, I'd guess you'd have
to recalculate several pointers. Right?


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