@@ -42,7 +42,7 @@ dzeros((100,100), workers()[1:4], [1,4])
4242
4343The second argument specifies that the array should be created on the first
4444four workers. When dividing data among a large number of processes,
45- one often sees diminishing returns in performance. Placing ` DArray ` \ s
45+ one often sees diminishing returns in performance. Placing ` DArray ` s
4646on a subset of processes allows multiple ` DArray ` computations to
4747happen at once, with a higher ratio of work to communication on each
4848process.
@@ -57,15 +57,15 @@ equal the number of processes.
5757* ` distribute(a::Array) ` converts a local array to a distributed array.
5858
5959* ` localpart(d::DArray) ` obtains the locally-stored portion
60- of a ` DArray ` .
60+ of a ` DArray ` .
6161
6262* 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 ` .
6666
6767* ` localindices(a::DArray) ` gives a tuple of the index ranges owned by the
68- local process.
68+ local process.
6969
7070* ` convert(Array, a::DArray) ` brings all the data to the local process.
7171
@@ -154,7 +154,7 @@ is convenient for many problems. As an example, consider implementing the
154154"life" cellular automaton, where each cell in a grid is updated according
155155to its neighboring cells. To compute a chunk of the result of one iteration,
156156each process needs the immediate neighbor cells of its local chunk. The
157- following code accomplishes this::
157+ following code accomplishes this:
158158
159159``` julia
160160function life_step (d:: DArray )
@@ -185,7 +185,7 @@ data into a local array `old`. Note that the `do` block syntax is
185185convenient for passing ` init ` functions to the ` DArray ` constructor.
186186Next, the serial function ` life_rule ` is called to apply the update rules
187187to 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:
189189
190190``` julia
191191function life_rule (old)
0 commit comments