N3851: Multidimensional bounds, index and array_view -- Łukasz Mendakiewicz, Herb Sutter

A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: N3851

Date: 2014-01-17

Multidimensional bounds, index and array_view

by Łukasz Mendakiewicz, Herb Sutter

Excerpt:

Programs performing computations on multidimensional data are relatively common (e.g. operations on dense matrices or image processing) yet there is no standardized approach in C++ to express the concept of dimensionality. This document aims to fill this gap in the Standard C++ Library by proposing the following closely related types:

  • bounds and index as means of defining and addressing multidimensional discrete spaces.
  • array_view and strided_array_view as multidimensional views on contiguous or strided memory ranges, respectively.
  • bounds_iterator providing interoperability with iterator-based algorithms.

While the proposal builds on Microsoft experience of implementing and using similar extent, index and array_view types in their data parallel programming model -- C++ AMP [1] -- we believe that these concepts will also benefit a wider C++ community.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.