Skip to content

Commit

Permalink
Update docs/sphinx/user_guide/feature/view.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Burmark <MrBurmark@users.noreply.github.com>
  • Loading branch information
gberg617 and MrBurmark authored Dec 22, 2023
1 parent d18558a commit dcc9bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sphinx/user_guide/feature/view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ A simple illustrative example is shown below::
auto index_layout = RAJA::make_index_layout(index_tuple, 2, 3);
auto view = RAJA::make_index_view(&data[0][0], index_layout);

int val0 = view(1,0); // val0 is entry in data[1][1]
int val1 = view(1,1); // val1 is entry in data[1][2]
assert( view(1,0) == data[1][1] );
assert( &view(1,1) == &data[1][2] );

In the above example, a two-dimensional index layout is created with extents 2
and 3 for the first and second dimension, respectively. A DirectIndex strategy
Expand Down

0 comments on commit dcc9bd2

Please sign in to comment.