Skip to content

Commit

Permalink
Remove parens
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauman committed Nov 19, 2018
1 parent da1e3c5 commit 08e1bfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/src/manual/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ If all the indices are scalars, then the result `X` is a single element from the
`X` is an array with the same number of dimensions as the sum of the dimensionalities of all the
indices.

If all indices are vectors, for example, then the shape of `X` would be `(length(I₁), length(I₂), ..., length(Iₙ))`,
with location `(i₁, i₂, ..., iₙ)` of `X` containing the value `A[(I₁[i₁], I₂[i₂], ..., Iₙ[iₙ])]`.
If all indices `Iₖ` are vectors, for example, then the shape of `X` would be `(length(I₁), length(I₂), ..., length(Iₙ))`,
with location `i₁, i₂, ..., iₙ` of `X` containing the value `A[I₁[i₁], I₂[i₂], ..., Iₙ[iₙ]]`.

Example:

Expand Down Expand Up @@ -364,7 +364,7 @@ julia> A[[1 2; 1 2], 1, 2, 1]
5 6
```

The location `(i₁, i₂, i₃, ..., iₙ₊₁)` contains the value at `A[I₁[i₁, i₂], I₂[i₃], ..., Iₙ[iₙ₊₁]]`.
The location `i₁, i₂, i₃, ..., iₙ₊₁` contains the value at `A[I₁[i₁, i₂], I₂[i₃], ..., Iₙ[iₙ₊₁]]`.
All dimensions indexed with scalars are dropped. For example, the result of `A[2, J, 3]` is an
array with size `size(J)`. Its `i`th element is populated by `A[2, J[i], 3]`.

Expand Down Expand Up @@ -442,7 +442,7 @@ Just as in [Indexing](@ref man-array-indexing), the `end` keyword may be used
to represent the last index of each dimension within the indexing brackets, as
determined by the size of the array being assigned into. Indexed assignment
syntax without the `end` keyword is equivalent to a call to
([`setindex!`](@ref):
[`setindex!`](@ref):

```
setindex!(A, X, I₁, I₂, ..., Iₙ)
Expand Down

0 comments on commit 08e1bfc

Please sign in to comment.