@@ -68,13 +68,19 @@ vvprod(f::F, A, dims) where {F} = vvmapreduce(f, *, one, A, dims)
68
68
vvmaximum(f, A::AbstractArray, dims=:)
69
69
70
70
Compute the maximum value by calling `f` on each element of `A` over the given `dims`.
71
+
72
+ # Warning
73
+ `NaN` values are not handled!
71
74
"""
72
75
vvmaximum (f:: F , A, dims) where {F} = vvmapreduce (f, max, typemin, A, dims)
73
76
74
77
"""
75
78
vvminimum(f, A::AbstractArray, dims=:)
76
79
77
80
Compute the minimum value by calling `f` on each element of `A` over the given `dims`.
81
+
82
+ # Warning
83
+ `NaN` values are not handled!
78
84
"""
79
85
vvminimum (f:: F , A, dims) where {F} = vvmapreduce (f, min, typemax, A, dims)
80
86
@@ -130,6 +136,9 @@ vvminimum(A::AbstractArray) = vvmapreduce(identity, min, typemax, A, :)
130
136
131
137
Compute the minimum and maximum values by calling `f` on each element of of `A`
132
138
over the given `dims`.
139
+
140
+ # Warning
141
+ `NaN` values are not handled!
133
142
"""
134
143
vvextrema (f:: F , A, dims) where {F} = collect (zip (vvminimum (f, A, dims), vvmaximum (f, A, dims)))
135
144
vvextrema (f:: F , A, :: Colon ) where {F} = (vvminimum (f, A, :), vvmaximum (f, A, :))
@@ -632,13 +641,19 @@ vtprod(f::F, A, dims) where {F} = vtmapreduce(f, *, one, A, dims)
632
641
vtmaximum(f, A::AbstractArray, dims=:)
633
642
634
643
Compute the maximum value by calling `f` on each element of `A` over the given `dims`.
644
+
645
+ # Warning
646
+ `NaN` values are not handled!
635
647
"""
636
648
vtmaximum (f:: F , A, dims) where {F} = vtmapreduce (f, max, typemin, A, dims)
637
649
638
650
"""
639
651
vtminimum(f, A::AbstractArray, dims=:)
640
652
641
653
Compute the minimum value by calling `f` on each element of `A` over the given `dims`.
654
+
655
+ # Warning
656
+ `NaN` values are not handled!
642
657
"""
643
658
vtminimum (f:: F , A, dims) where {F} = vtmapreduce (f, min, typemax, A, dims)
644
659
@@ -688,6 +703,9 @@ vtminimum(A::AbstractArray) = vtmapreduce(identity, min, typemax, A, :)
688
703
689
704
Compute the minimum and maximum values by calling `f` on each element of of `A`
690
705
over the given `dims`.
706
+
707
+ # Warning
708
+ `NaN` values are not handled!
691
709
"""
692
710
vtextrema (f:: F , A, dims) where {F} = collect (zip (vtminimum (f, A, dims), vtmaximum (f, A, dims)))
693
711
vtextrema (f:: F , A, :: Colon ) where {F} = (vtminimum (f, A, :), vtmaximum (f, A, :))
0 commit comments