1 May
2010
1 May
'10
1:08 p.m.
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