Skip to content

Commit f6f2ed2

Browse files
authored
Merge pull request #218 from mbauman/patch-1
Fix #216
2 parents f1459be + 1929127 commit f6f2ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapreduce.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function Base.extrema(d::DArray)
136136
return reduce((t,s) -> (min(t[1], s[1]), max(t[2], s[2])), r)
137137
end
138138

139-
Statistics._mean(A::DArray, region) = sum(A, dims = region) ./ prod((size(A, i) for i in region))
139+
Statistics._mean(f, A::DArray, region) = sum(f, A, dims = region) ./ prod((size(A, i) for i in region))
140140

141141
# Unary vector functions
142142
(-)(D::DArray) = map(-, D)

0 commit comments

Comments
 (0)