Documentation
|
|
Create local copy of variable for iteration.
More...
| array | local (const array &variable) |
| Indicate when a variable is unique to each iteration, i.e. More... | |
Create local copy of variable for iteration.
| array af::local | ( | const array & | variable | ) |
Indicate when a variable is unique to each iteration, i.e.
each iteration has its own copy of the data for modification independent of other iterations.
For example, when using the equal sign, ArrayFire thinks you are subscripting into B shared by all iterations:
Compare that to indicating local copies:
Produces:
C =
0
0
0
0
0
D =
14
13
12
11
10