@@ -57,15 +57,15 @@ equal the number of processes.
57
57
* ` distribute(a::Array) ` converts a local array to a distributed array.
58
58
59
59
* ` localpart(d::DArray) ` obtains the locally-stored portion
60
- of a ` DArray ` .
60
+ of a ` DArray ` .
61
61
62
62
* Localparts can be retrived and set via the indexing syntax too.
63
- Indexing via symbols is used for this, specifically symbols ` :L ` ,` :LP ` ,` :l ` ,` :lp ` which
64
- are all equivalent. For example, ` d[:L] ` returns the localpart of ` d `
65
- while ` d[:L]=v ` sets ` v ` as the localpart of ` d ` .
63
+ Indexing via symbols is used for this, specifically symbols ` :L ` ,` :LP ` ,` :l ` ,` :lp ` which
64
+ are all equivalent. For example, ` d[:L] ` returns the localpart of ` d `
65
+ while ` d[:L]=v ` sets ` v ` as the localpart of ` d ` .
66
66
67
67
* ` localindices(a::DArray) ` gives a tuple of the index ranges owned by the
68
- local process.
68
+ local process.
69
69
70
70
* ` convert(Array, a::DArray) ` brings all the data to the local process.
71
71
@@ -154,7 +154,7 @@ is convenient for many problems. As an example, consider implementing the
154
154
"life" cellular automaton, where each cell in a grid is updated according
155
155
to its neighboring cells. To compute a chunk of the result of one iteration,
156
156
each process needs the immediate neighbor cells of its local chunk. The
157
- following code accomplishes this::
157
+ following code accomplishes this:
158
158
159
159
``` julia
160
160
function life_step (d:: DArray )
@@ -185,7 +185,7 @@ data into a local array `old`. Note that the `do` block syntax is
185
185
convenient for passing ` init ` functions to the ` DArray ` constructor.
186
186
Next, the serial function ` life_rule ` is called to apply the update rules
187
187
to the data, yielding the needed ` DArray ` chunk. Nothing about ` life_rule `
188
- is ` DArray ` \ -specific, but we list it here for completeness::
188
+ is ` DArray ` \ -specific, but we list it here for completeness:
189
189
190
190
``` julia
191
191
function life_rule (old)
0 commit comments