Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some listing in documentation #2857

Merged
merged 1 commit into from Aug 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/manual/vector.qbk
Expand Up @@ -371,7 +371,7 @@ By default, the `partitioned_vector` class integrates 1-D views of its segments
std::vector<double> v = vv[i];

Our views are called "multi-dimensional" in the sense that they generalize
to N dimensions the purpose of `segmented_iterator_traits::segments()` in the 1-D case. Note that
to N dimensions the purpose of `segmented_iterator_traits::segment()` in the 1-D case. Note that
in a parallel section, the 2-D expression `a(i,j) = b(i,j)` is quite confusing
because without convention, each of the images invoked will race to execute
the statement. For this reason, our views are not only multi-dimensional
Expand Down Expand Up @@ -539,14 +539,14 @@ sub-view.

// Instanciate the subview
View_2D svv(
block,&v(tilesize,0),&v(2*tilesize-1,tilesize-1),{tilesize,tilesize},{N,N});
block,&vv(tilesize,0),&vv(2*tilesize-1,tilesize-1),{tilesize,tilesize},{N,N});

if(block.this_image() == 0)
{
// Equivalent to 'sv(tilesize,0) = 2.0f'
// Equivalent to 'vv(tilesize,0) = 2.0f'
svv(0,0) = 2.0f;

// Equivalent to 'sv(2*tilesize-1,tilesize-1) = 3.0f'
// Equivalent to 'vv(2*tilesize-1,tilesize-1) = 3.0f'
svv(tilesize-1,tilesize-1) = 3.0f;
}

Expand Down