@@ -107,7 +107,7 @@ where no arguments are given. [Array literal can be typed](@ref man-array-typed-
107107the syntax ` T[A, B, C, ...] ` where ` T ` is a type.
108108
109109``` jldoctest
110- julia> [1,2, 3] # An array of `Int`s
110+ julia> [1, 2, 3] # An array of `Int`s
1111113-element Vector{Int64}:
112112 1
113113 2
@@ -326,8 +326,8 @@ These syntaxes are shorthands for function calls that themselves are convenience
326326| Syntax | Function | Description |
327327| :---------------------- | :---------------- | :---------------------------------------------------------------------------------------------------------- |
328328| | [ ` cat ` ] ( @ref ) | concatenate input arrays along dimension(s) ` k ` |
329- | ` [A; B; C; ...] ` | [ ` vcat ` ] ( @ref ) | shorthand for `cat(A...; dims=1) |
330- | ` [A B C ...] ` | [ ` hcat ` ] ( @ref ) | shorthand for `cat(A...; dims=2) |
329+ | ` [A; B; C; ...] ` | [ ` vcat ` ] ( @ref ) | shorthand for ` cat(A...; dims=1) ` |
330+ | ` [A B C ...] ` | [ ` hcat ` ] ( @ref ) | shorthand for ` cat(A...; dims=2) ` |
331331| ` [A B; C D; ...] ` | [ ` hvcat ` ] ( @ref ) | simultaneous vertical and horizontal concatenation |
332332| ` [A; C;; B; D;;; ...] ` | [ ` hvncat ` ] ( @ref ) | simultaneous n-dimensional concatenation, where number of semicolons indicate the dimension to concatenate |
333333
@@ -356,7 +356,7 @@ Comprehensions provide a general and powerful way to construct arrays. Comprehen
356356similar to set construction notation in mathematics:
357357
358358```
359- A = [ F(x,y, ...) for x=rx, y=ry, ... ]
359+ A = [ F(x, y, ...) for x=rx, y=ry, ... ]
360360```
361361
362362The meaning of this form is that ` F(x,y,...) ` is evaluated with the variables ` x ` , ` y ` , etc. taking
@@ -440,7 +440,7 @@ Ranges in generators and comprehensions can depend on previous ranges by writing
440440keywords:
441441
442442``` jldoctest
443- julia> [(i,j) for i=1:3 for j=1:i]
443+ julia> [(i, j) for i=1:3 for j=1:i]
4444446-element Vector{Tuple{Int64, Int64}}:
445445 (1, 1)
446446 (2, 1)
@@ -455,7 +455,7 @@ In such cases, the result is always 1-d.
455455Generated values can be filtered using the ` if ` keyword:
456456
457457``` jldoctest
458- julia> [(i,j) for i=1:3 for j=1:i if i+j == 4]
458+ julia> [(i, j) for i=1:3 for j=1:i if i+j == 4]
4594592-element Vector{Tuple{Int64, Int64}}:
460460 (2, 2)
461461 (3, 1)
@@ -740,17 +740,17 @@ that is sometimes referred to as pointwise indexing. For example, it enables
740740accessing the diagonal elements from the first "page" of ` A ` from above:
741741
742742``` jldoctest cartesianindex
743- julia> page = A[:,:, 1]
743+ julia> page = A[:, :, 1]
7447444×4 Matrix{Int64}:
745745 1 5 9 13
746746 2 6 10 14
747747 3 7 11 15
748748 4 8 12 16
749749
750- julia> page[[CartesianIndex(1,1),
751- CartesianIndex(2,2),
752- CartesianIndex(3,3),
753- CartesianIndex(4,4)]]
750+ julia> page[[CartesianIndex(1, 1),
751+ CartesianIndex(2, 2),
752+ CartesianIndex(3, 3),
753+ CartesianIndex(4, 4)]]
7547544-element Vector{Int64}:
755755 1
756756 6
@@ -964,7 +964,7 @@ construct, `i` will be an `Int` if `A` is an array type with fast linear indexin
964964it will be a ` CartesianIndex ` :
965965
966966``` jldoctest
967- julia> A = rand(4,3);
967+ julia> A = rand(4, 3);
968968
969969julia> B = view(A, 1:3, 2:3);
970970
@@ -1029,9 +1029,9 @@ sizes, such as adding a vector to each column of a matrix. An inefficient way to
10291029be to replicate the vector to the size of the matrix:
10301030
10311031``` julia-repl
1032- julia> a = rand(2,1); A = rand(2,3);
1032+ julia> a = rand(2, 1); A = rand(2, 3);
10331033
1034- julia> repeat(a,1,3)+ A
1034+ julia> repeat(a, 1, 3) + A
103510352×3 Array{Float64,2}:
10361036 1.20813 1.82068 1.25387
10371037 1.56851 1.86401 1.67846
@@ -1153,9 +1153,9 @@ arranged contiguously in column major order. This means that the stride of the f
11531153dimension — the spacing between elements in the same column — is ` 1 ` :
11541154
11551155``` julia-repl
1156- julia> A = rand(5,7, 2);
1156+ julia> A = rand(5, 7, 2);
11571157
1158- julia> stride(A,1)
1158+ julia> stride(A, 1)
115911591
11601160```
11611161
0 commit comments