Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Jan 14, 2024
1 parent 392a1f9 commit 4229760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/lib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ accum(x, y) =
accum(x, y, zs...) = accum(accum(x, y), zs...)

accum(x::Tuple, ys::Tuple...) = map(accum, x, ys...)
accum(x::AbstractArray, ys::AbstractArray...) = accum.(x, ys...)
accum(x::AbstractArray, ys::AbstractArray...) = Base.broadcast_preserving_zero_d(accum, x, ys...)

@generated function accum(x::NamedTuple, y::NamedTuple)
# assumes that y has no keys apart from those also in x
Expand Down

0 comments on commit 4229760

Please sign in to comment.