967
967
968
968
Find the minimum of `A` and the corresponding linear index along singleton
969
969
dimensions of `rval` and `rind`, and store the results in `rval` and `rind`.
970
- `NaN` is treated as less than all other values.
970
+ `NaN` is treated as less than all other values except `missing` .
971
971
"""
972
972
function findmin! (rval:: AbstractArray , rind:: AbstractArray , A:: AbstractArray ;
973
973
init:: Bool = true )
978
978
findmin(A; dims) -> (minval, index)
979
979
980
980
For an array input, returns the value and index of the minimum over the given dimensions.
981
- `NaN` is treated as less than all other values.
981
+ `NaN` is treated as less than all other values except `missing` .
982
982
983
983
# Examples
984
984
```jldoctest
@@ -1014,7 +1014,7 @@ end
1014
1014
1015
1015
Find the maximum of `A` and the corresponding linear index along singleton
1016
1016
dimensions of `rval` and `rind`, and store the results in `rval` and `rind`.
1017
- `NaN` is treated as greater than all other values.
1017
+ `NaN` is treated as greater than all other values except `missing` .
1018
1018
"""
1019
1019
function findmax! (rval:: AbstractArray , rind:: AbstractArray , A:: AbstractArray ;
1020
1020
init:: Bool = true )
@@ -1025,7 +1025,7 @@ end
1025
1025
findmax(A; dims) -> (maxval, index)
1026
1026
1027
1027
For an array input, returns the value and index of the maximum over the given dimensions.
1028
- `NaN` is treated as greater than all other values.
1028
+ `NaN` is treated as greater than all other values except `missing` .
1029
1029
1030
1030
# Examples
1031
1031
```jldoctest
@@ -1062,7 +1062,7 @@ reducedim1(R, A) = length(axes1(R)) == 1
1062
1062
argmin(A; dims) -> indices
1063
1063
1064
1064
For an array input, return the indices of the minimum elements over the given dimensions.
1065
- `NaN` is treated as less than all other values.
1065
+ `NaN` is treated as less than all other values except `missing` .
1066
1066
1067
1067
# Examples
1068
1068
```jldoctest
@@ -1087,7 +1087,7 @@ argmin(A::AbstractArray; dims=:) = findmin(A; dims=dims)[2]
1087
1087
argmax(A; dims) -> indices
1088
1088
1089
1089
For an array input, return the indices of the maximum elements over the given dimensions.
1090
- `NaN` is treated as greater than all other values.
1090
+ `NaN` is treated as greater than all other values except `missing` .
1091
1091
1092
1092
# Examples
1093
1093
```jldoctest
0 commit comments