Skip to content

Commit d087b60

Browse files
Change of phrasing
1 parent b0a9e2c commit d087b60

File tree

5 files changed

+75
-75
lines changed

5 files changed

+75
-75
lines changed

src/vargminmax.jl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ vargminmax(f::F, op::OP, init::I, A, dims) where {F, OP, I} = vfindminmax(f, op,
1818
"""
1919
vargmax(f, A::AbstractArray, dims=:)
2020
21-
Return the index of the argument which maximizes `f` along the
21+
Return the index of the argument which maximizes `f` over the
2222
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
2323
Expands upon the functionality provided in Julia Base.
2424
2525
# Additional Notes
26-
Due to the current limitations of LoopVectorization, searches along the first dimension
26+
Due to the current limitations of LoopVectorization, searches over the first dimension
2727
of an array are not well-supported. A workaround is possible by reshaping `A` but
2828
the resultant performance is often only on par with `argmax`. As a temporary convenience,
2929
`vargmax1` is provided for explicit uses of the re-shaping strategy, though the user
@@ -34,12 +34,12 @@ vargmax(f::F, A, dims) where {F<:Function} = vfindminmax(f, >, typemin, A, dims)
3434
"""
3535
vargmin(f, A::AbstractArray, dims=:)
3636
37-
Return the index of the argument which minimizes `f` along the
37+
Return the index of the argument which minimizes `f` over the
3838
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
3939
Expands upon the functionality provided in Julia Base.
4040
4141
# Additional Notes
42-
Due to the current limitations of LoopVectorization, searches along the first dimension
42+
Due to the current limitations of LoopVectorization, searches over the first dimension
4343
of an array are not well-supported. A workaround is possible by reshaping `A` but
4444
the resultant performance is often only on par with `argmin`. As a temporary convenience,
4545
`vargmin1` is provided for explicit uses of the re-shaping strategy, though the user
@@ -51,14 +51,14 @@ vargmin(f::F, A, dims) where {F<:Function} = vfindminmax(f, <, typemax, A, dims)
5151
"""
5252
vargmax(A::AbstractArray, dims=:)
5353
54-
Return the index of the maximal value of `A` along the dimensions `dims`.
54+
Return the index of the maximal value of `A` over the dimensions `dims`.
5555
"""
5656
vargmax(A::AbstractArray, dims) = vargminmax(identity, >, typemin, A, dims)
5757

5858
"""
5959
vargmin(A::AbstractArray, dims=:)
6060
61-
Return the index of the minimal value of `A` along the dimensions `dims`.
61+
Return the index of the minimal value of `A` over the dimensions `dims`.
6262
"""
6363
vargmin(A::AbstractArray, dims) = vargminmax(identity, <, typemax, A, dims)
6464

@@ -95,7 +95,7 @@ vtargminmax(f::F, op::OP, init::I, A, dims) where {F, OP, I} =
9595
"""
9696
vtargmax(f, A::AbstractArray, dims=:)
9797
98-
Return the index of the argument which maximizes `f` along the
98+
Return the index of the argument which maximizes `f` over the
9999
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
100100
Threaded.
101101
@@ -106,7 +106,7 @@ vtargmax(f::F, A, dims) where {F<:Function} = vtfindminmax(f, >, typemin, A, dim
106106
"""
107107
vtargmin(f, A::AbstractArray, dims=:)
108108
109-
Return the index of the argument which minimizes `f` along the
109+
Return the index of the argument which minimizes `f` over the
110110
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
111111
Threaded.
112112
@@ -118,14 +118,14 @@ vtargmin(f::F, A, dims) where {F<:Function} = vtfindminmax(f, <, typemax, A, dim
118118
"""
119119
vtargmax(A::AbstractArray, dims=:)
120120
121-
Return the index of the maximal element along the dimensions `dims`. Threaded.
121+
Return the index of the maximal element over the dimensions `dims`. Threaded.
122122
"""
123123
vtargmax(A::AbstractArray, dims) = vtargminmax(identity, >, typemin, A, dims)
124124

125125
"""
126126
vtargmin(A::AbstractArray, dims=:)
127127
128-
Return the index of the minimal element along the dimensions `dims`. Threaded.
128+
Return the index of the minimal element over the dimensions `dims`. Threaded.
129129
"""
130130
vtargmin(A::AbstractArray, dims) = vtargminmax(identity, <, typemax, A, dims)
131131

@@ -170,7 +170,7 @@ vargmin(f::F, As::Vararg{AbstractArray, P}) where {F<:Function, P} =
170170
"""
171171
vargmax(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
172172
173-
Return the index of the arguments which maximize `f` : ℝᴺ → ℝ along the
173+
Return the index of the arguments which maximize `f` : ℝᴺ → ℝ over the
174174
dimensions `dims`. This expands upon the functionality which exists in Julia Base.
175175
"""
176176
vargmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
@@ -179,7 +179,7 @@ vargmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
179179
"""
180180
vargmin(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
181181
182-
Return the index of the arguments which minimize `f` : ℝᴺ → ℝ along the
182+
Return the index of the arguments which minimize `f` : ℝᴺ → ℝ over the
183183
dimensions `dims`. This expands upon the functionality which exists in Julia Base.
184184
"""
185185
vargmin(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
@@ -193,7 +193,7 @@ vtargmin(f::F, As::Vararg{AbstractArray, P}) where {F<:Function, P} =
193193
"""
194194
vargmax(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
195195
196-
Return the index of the arguments which maximize `f` : ℝᴺ → ℝ along the
196+
Return the index of the arguments which maximize `f` : ℝᴺ → ℝ over the
197197
dimensions `dims`. Threaded.
198198
"""
199199
vtargmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
@@ -202,7 +202,7 @@ vtargmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
202202
"""
203203
vargmin(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
204204
205-
Return the index of the arguments which minimize `f` : ℝᴺ → ℝ along the
205+
Return the index of the arguments which minimize `f` : ℝᴺ → ℝ over the
206206
dimensions `dims`. Threaded.
207207
"""
208208
vtargmin(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =

src/vfindminmax.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ vfindminmax(f, op, init, A, dims::Int) = vfindminmax(f, op, init, A, (dims,))
2929
"""
3030
vfindmax(f, A::AbstractArray, dims=:) -> (f(x), index)
3131
32-
Return the value and the index of the argument which maximizes `f` along the
32+
Return the value and the index of the argument which maximizes `f` over the
3333
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
3434
Expands upon the functionality provided in Julia Base.
3535
3636
# Additional Notes
37-
Due to the current limitations of LoopVectorization, searches along the first dimension
37+
Due to the current limitations of LoopVectorization, searches over the first dimension
3838
of an array are not well-supported. A workaround is possible by reshaping `A` but
3939
the resultant performance is often only on par with `findmax`. As a temporary convenience,
4040
`findmax1` is provided for explicit uses of the re-shaping strategy, though the user
@@ -45,12 +45,12 @@ vfindmax(f::F, A, dims) where {F<:Function} = vfindminmax(f, >, typemin, A, dims
4545
"""
4646
vfindmin(f, A::AbstractArray, dims=:) -> (f(x), index)
4747
48-
Return the value and the index of the argument which minimizes `f` along the
48+
Return the value and the index of the argument which minimizes `f` over the
4949
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
5050
Expands upon the functionality provided in Julia Base.
5151
5252
# Additional Notes
53-
Due to the current limitations of LoopVectorization, searches along the first dimension
53+
Due to the current limitations of LoopVectorization, searches over the first dimension
5454
of an array are not well-supported. A workaround is possible by reshaping `A` but
5555
the resultant performance is often only on par with `findmin`. As a temporary convenience,
5656
`findmin1` is provided for explicit uses of the re-shaping strategy, though the user
@@ -63,14 +63,14 @@ vfindmin(f::F, A, dims) where {F<:Function} = vfindminmax(f, <, typemax, A, dims
6363
"""
6464
vfindmax(A::AbstractArray, dims=:) -> (x, index)
6565
66-
Return the maximal element and its index along the dimensions `dims`.
66+
Return the maximal element and its index over the dimensions `dims`.
6767
"""
6868
vfindmax(A::AbstractArray, dims) = vfindminmax(identity, >, typemin, A, dims)
6969

7070
"""
7171
vfindmin(A::AbstractArray, dims=:) -> (x, index)
7272
73-
Return the minimal element and its index along the dimensions `dims`.
73+
Return the minimal element and its index over the dimensions `dims`.
7474
"""
7575
vfindmin(A::AbstractArray, dims) = vfindminmax(identity, <, typemax, A, dims)
7676

@@ -640,7 +640,7 @@ vtfindminmax(f, op, init, A, dims::Int) = vtfindminmax(f, op, init, A, (dims,))
640640
"""
641641
vtfindmax(f, A::AbstractArray, dims=:) -> (f(x), index)
642642
643-
Return the value and the index of the argument which maximizes `f` along the
643+
Return the value and the index of the argument which maximizes `f` over the
644644
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
645645
Threaded.
646646
@@ -651,7 +651,7 @@ vtfindmax(f::F, A, dims) where {F<:Function} = vtfindminmax(f, >, typemin, A, di
651651
"""
652652
vtfindmin(f, A::AbstractArray, dims=:) -> (f(x), index)
653653
654-
Return the value and the index of the argument which minimizes `f` along the
654+
Return the value and the index of the argument which minimizes `f` over the
655655
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
656656
Threaded.
657657
@@ -662,14 +662,14 @@ vtfindmin(f::F, A, dims) where {F<:Function} = vtfindminmax(f, <, typemax, A, di
662662
"""
663663
vtfindmax(A::AbstractArray, dims=:) -> (x, index)
664664
665-
Return the maximal element and its index along the dimensions `dims`. Threaded.
665+
Return the maximal element and its index over the dimensions `dims`. Threaded.
666666
"""
667667
vtfindmax(A::AbstractArray, dims) = vtfindminmax(identity, >, typemin, A, dims)
668668

669669
"""
670670
vtfindmin(A::AbstractArray, dims=:) -> (x, index)
671671
672-
Return the minimal element and its index along the dimensions `dims`. Threaded.
672+
Return the minimal element and its index over the dimensions `dims`. Threaded.
673673
"""
674674
vtfindmin(A::AbstractArray, dims) = vtfindminmax(identity, <, typemax, A, dims)
675675

src/vfindminmax_vararg.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ vfindmin(f::F, As::Vararg{AbstractArray, P}) where {F<:Function, P} =
1818
"""
1919
vfindmax(f, As::Vararg{AbstractArray, N}; dims=:) where {N} -> (f(x,y,z,...), index)
2020
21-
Return the value and index of the arguments which maximize `f` : ℝᴺ → ℝ along the
21+
Return the value and index of the arguments which maximize `f` : ℝᴺ → ℝ over the
2222
dimensions `dims`. This expands upon the functionality which exists in Julia Base.
2323
"""
2424
vfindmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} = vfindminmax(f, >, typemin, As, dims)
2525

2626
"""
2727
vfindmin(f, As::Vararg{AbstractArray, N}; dims=:) where {N} -> (f(x,y,z,...), index)
2828
29-
Return the value and index of the arguments which minimize `f` : ℝᴺ → ℝ along the
29+
Return the value and index of the arguments which minimize `f` : ℝᴺ → ℝ over the
3030
dimensions `dims`. This expands upon the functionality which exists in Julia Base.
3131
"""
3232
vfindmin(f, As::Vararg{AbstractArray, P}; dims=:) where {P} = vfindminmax(f, <, typemax, As, dims)
@@ -331,7 +331,7 @@ vtfindmin(f::F, As::Vararg{AbstractArray, P}) where {F<:Function, P} =
331331
"""
332332
vtfindmax(f, As::Vararg{AbstractArray, N}; dims=:) where {N} -> (f(x,y,z,...), index)
333333
334-
Return the value and index of the arguments which maximize `f` : ℝᴺ → ℝ along the
334+
Return the value and index of the arguments which maximize `f` : ℝᴺ → ℝ over the
335335
dimensions `dims`. Threaded.
336336
"""
337337
vtfindmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
@@ -340,7 +340,7 @@ vtfindmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
340340
"""
341341
vtfindmin(f, As::Vararg{AbstractArray, N}; dims=:) where {N} -> (f(x,y,z,...), index)
342342
343-
Return the value and index of the arguments which minimize `f` : ℝᴺ → ℝ along the
343+
Return the value and index of the arguments which minimize `f` : ℝᴺ → ℝ over the
344344
dimensions `dims`. Threaded.
345345
"""
346346
vtfindmin(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =

0 commit comments

Comments
 (0)