Skip to content

Commit

Permalink
Fix index in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
janciesko committed Jan 28, 2025
1 parent f777a26 commit 080b4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/API/core/policies/ThreadVectorRange.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Examples
int team_sum;
parallel_reduce(TeamThreadRange(team,M), [&] (const int& i, int& threadsum) {
int tsum = 0;
parallel_reduce(ThreadVectorRange(team,M), [&] (const int& j, int& lsum) {
parallel_reduce(ThreadVectorRange(team,K), [&] (const int& j, int& lsum) {
lsum += A(n,i,j);
},tsum);
single(PerThread(team),[&] () {
Expand Down

0 comments on commit 080b4e2

Please sign in to comment.