Skip to content

Commit 4379804

Browse files
authored
Merge pull request #204 from jonas-schulze/fix-documentation
Fix documentation
2 parents e929a74 + 9e19f6c commit 4379804

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/src/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dzeros((100,100), workers()[1:4], [1,4])
4242

4343
The second argument specifies that the array should be created on the first
4444
four 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
4646
on a subset of processes allows multiple `DArray` computations to
4747
happen at once, with a higher ratio of work to communication on each
4848
process.
@@ -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
155155
to its neighboring cells. To compute a chunk of the result of one iteration,
156156
each process needs the immediate neighbor cells of its local chunk. The
157-
following code accomplishes this::
157+
following code accomplishes this:
158158

159159
```julia
160160
function life_step(d::DArray)
@@ -185,7 +185,7 @@ data into a local array `old`. Note that the `do` block syntax is
185185
convenient for passing `init` functions to the `DArray` constructor.
186186
Next, the serial function `life_rule` is called to apply the update rules
187187
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:
189189

190190
```julia
191191
function life_rule(old)

0 commit comments

Comments
 (0)