@@ -18,12 +18,12 @@ vargminmax(f::F, op::OP, init::I, A, dims) where {F, OP, I} = vfindminmax(f, op,
18
18
"""
19
19
vargmax(f, A::AbstractArray, dims=:)
20
20
21
- Return the index of the argument which maximizes `f` along the
21
+ Return the index of the argument which maximizes `f` over the
22
22
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
23
23
Expands upon the functionality provided in Julia Base.
24
24
25
25
# 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
27
27
of an array are not well-supported. A workaround is possible by reshaping `A` but
28
28
the resultant performance is often only on par with `argmax`. As a temporary convenience,
29
29
`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)
34
34
"""
35
35
vargmin(f, A::AbstractArray, dims=:)
36
36
37
- Return the index of the argument which minimizes `f` along the
37
+ Return the index of the argument which minimizes `f` over the
38
38
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
39
39
Expands upon the functionality provided in Julia Base.
40
40
41
41
# 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
43
43
of an array are not well-supported. A workaround is possible by reshaping `A` but
44
44
the resultant performance is often only on par with `argmin`. As a temporary convenience,
45
45
`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)
51
51
"""
52
52
vargmax(A::AbstractArray, dims=:)
53
53
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`.
55
55
"""
56
56
vargmax (A:: AbstractArray , dims) = vargminmax (identity, > , typemin, A, dims)
57
57
58
58
"""
59
59
vargmin(A::AbstractArray, dims=:)
60
60
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`.
62
62
"""
63
63
vargmin (A:: AbstractArray , dims) = vargminmax (identity, < , typemax, A, dims)
64
64
@@ -95,7 +95,7 @@ vtargminmax(f::F, op::OP, init::I, A, dims) where {F, OP, I} =
95
95
"""
96
96
vtargmax(f, A::AbstractArray, dims=:)
97
97
98
- Return the index of the argument which maximizes `f` along the
98
+ Return the index of the argument which maximizes `f` over the
99
99
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
100
100
Threaded.
101
101
@@ -106,7 +106,7 @@ vtargmax(f::F, A, dims) where {F<:Function} = vtfindminmax(f, >, typemin, A, dim
106
106
"""
107
107
vtargmin(f, A::AbstractArray, dims=:)
108
108
109
- Return the index of the argument which minimizes `f` along the
109
+ Return the index of the argument which minimizes `f` over the
110
110
dimensions `dims`, which may be `::Int`, `::NTuple{M, Int} where {M}` or `::Colon`.
111
111
Threaded.
112
112
@@ -118,14 +118,14 @@ vtargmin(f::F, A, dims) where {F<:Function} = vtfindminmax(f, <, typemax, A, dim
118
118
"""
119
119
vtargmax(A::AbstractArray, dims=:)
120
120
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.
122
122
"""
123
123
vtargmax (A:: AbstractArray , dims) = vtargminmax (identity, > , typemin, A, dims)
124
124
125
125
"""
126
126
vtargmin(A::AbstractArray, dims=:)
127
127
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.
129
129
"""
130
130
vtargmin (A:: AbstractArray , dims) = vtargminmax (identity, < , typemax, A, dims)
131
131
@@ -170,7 +170,7 @@ vargmin(f::F, As::Vararg{AbstractArray, P}) where {F<:Function, P} =
170
170
"""
171
171
vargmax(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
172
172
173
- Return the index of the arguments which maximize `f` : ℝᴺ → ℝ along the
173
+ Return the index of the arguments which maximize `f` : ℝᴺ → ℝ over the
174
174
dimensions `dims`. This expands upon the functionality which exists in Julia Base.
175
175
"""
176
176
vargmax (f, As:: Vararg{AbstractArray, P} ; dims= :) where {P} =
@@ -179,7 +179,7 @@ vargmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
179
179
"""
180
180
vargmin(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
181
181
182
- Return the index of the arguments which minimize `f` : ℝᴺ → ℝ along the
182
+ Return the index of the arguments which minimize `f` : ℝᴺ → ℝ over the
183
183
dimensions `dims`. This expands upon the functionality which exists in Julia Base.
184
184
"""
185
185
vargmin (f, As:: Vararg{AbstractArray, P} ; dims= :) where {P} =
@@ -193,7 +193,7 @@ vtargmin(f::F, As::Vararg{AbstractArray, P}) where {F<:Function, P} =
193
193
"""
194
194
vargmax(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
195
195
196
- Return the index of the arguments which maximize `f` : ℝᴺ → ℝ along the
196
+ Return the index of the arguments which maximize `f` : ℝᴺ → ℝ over the
197
197
dimensions `dims`. Threaded.
198
198
"""
199
199
vtargmax (f, As:: Vararg{AbstractArray, P} ; dims= :) where {P} =
@@ -202,7 +202,7 @@ vtargmax(f, As::Vararg{AbstractArray, P}; dims=:) where {P} =
202
202
"""
203
203
vargmin(f, As::Vararg{AbstractArray, N}; dims=:) where {N}
204
204
205
- Return the index of the arguments which minimize `f` : ℝᴺ → ℝ along the
205
+ Return the index of the arguments which minimize `f` : ℝᴺ → ℝ over the
206
206
dimensions `dims`. Threaded.
207
207
"""
208
208
vtargmin (f, As:: Vararg{AbstractArray, P} ; dims= :) where {P} =
0 commit comments