$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [MultiArray] subscript to index
From: Rhys Ulerich (rhys.ulerich_at_[hidden])
Date: 2010-05-01 09:08:02
> Does MultiArray provide a convenient way to get an raw-index (i.e. offset to
> an element in raw-data) given a collection of indices?
Not as far as I know. You could accomplish this accumulating indices
and strides relative to the origin (similar to the pseudocode for
a(index_list) in Table 3 of
http://www.boost.org/doc/libs/1_42_0/libs/multi_array/doc/reference.html).
One other option might be &a(index_list) - a.origin().
- Rhys