Skip to content

Commit

Permalink
fixed cumprod and cumprod!
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed May 1, 2015
1 parent 832faf2 commit ec2ed8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ for (f, f!, fp, op) = ((:cumsum, :cumsum!, :cumsum_pairwise!, :+),
else
n2 = n >> 1
s_ = ($fp)(v, c, s, i1, n2)
s_ = $(op)(s_, ($fp)(v, c, s + s_, i1+n2, n-n2))
s_ = $(op)(s_, ($fp)(v, c, ($op)(s, s_), i1+n2, n-n2))
end
return s_
end
Expand Down

0 comments on commit ec2ed8f

Please sign in to comment.