[Boost-bugs] [Boost C++ Libraries] #11587: Compute index from offset and vice versa

Subject: [Boost-bugs] [Boost C++ Libraries] #11587: Compute index from offset and vice versa
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-27 09:38:48


#11587: Compute index from offset and vice versa
------------------------------+-------------------------
 Reporter: alex.shtf@… | Owner: garcia
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: multi_array
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11587>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC