Opened 7 years ago

#11587 new Feature Requests

Compute index from offset and vice versa

Reported by: alex.shtf@… Owned by: Ronald Garcia
Milestone: To Be Determined Component: multi_array
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

When using multi_array, or more precisely multi_array_ref, it is sometimes essential to compute a multi-dimensional index from an absolute offset from the origin, and vice versa. It is essential for inter-operability with legacy code that is not aware of multi_array.

I believe that two methods:

  • multi_array::index_to_offset
  • multi_array::offset_to_index

will do the job.

Change History (0)

Note: See TracTickets for help on using tickets.