|
6 | 6 | ############################################################################################
|
7 | 7 | # interface
|
8 | 8 | """
|
9 |
| - vvextrema([f=identity], A::AbstractArray; [dims=:], [init=(mn,mx)]) |
| 9 | + vextrema([f=identity], A::AbstractArray; [dims=:], [init=(mn,mx)]) |
10 | 10 |
|
11 | 11 | Compute the minimum and maximum values by calling `f` on each element of of `A`
|
12 |
| -over the given `dims`, with the `mn` and `mn` initialized by the respective arguments |
| 12 | +over the given `dims`, with the `mn` and `mx` initialized by the respective arguments |
13 | 13 | of the 2-tuple `init`, which can be any combination of values (`<:Number`) or functions
|
14 | 14 | which accept a single type argument.
|
15 | 15 |
|
@@ -42,6 +42,13 @@ vextrema(A; dims=:, init=(typemax, typemin)) = vextrema(identity, init[1], init[
|
42 | 42 |
|
43 | 43 | # handle convenience cases
|
44 | 44 | vextrema(f, initmin, initmax, A, dims::Int) = vextrema(f, initmin, initmax, A, (dims,))
|
| 45 | + |
| 46 | +""" |
| 47 | + vextrema([f=identity], A::AbstractArray, dims=:) |
| 48 | +
|
| 49 | +Compute the minimum and maximum values by calling `f` on each element of of `A` |
| 50 | +over the given `dims`. |
| 51 | +""" |
45 | 52 | vextrema(f, A, dims) = vextrema(f, typemax, typemin, A, dims)
|
46 | 53 | vextrema(A::AbstractArray, dims) = vextrema(identity, A, dims)
|
47 | 54 |
|
|
0 commit comments