We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0291894 commit c3decd0Copy full SHA for c3decd0
src/array_partition.jl
@@ -70,6 +70,7 @@ function recursivecopy!(A::ArrayPartition,B::ArrayPartition)
70
end
71
72
recursive_one(A::ArrayPartition) = recursive_one(first(A.x))
73
+recursive_mean(A::ArrayPartition) = mean((recursive_mean(x) for x in A.x))
74
Base.zero(A::ArrayPartition) = zero(first(A.x))
75
Base.first(A::ArrayPartition) = first(A.x)
76
0 commit comments