Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pxl-th committed Jun 21, 2024
1 parent 00cc8c3 commit c7742bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ end
@generated function _scatter!(i, op, dest, src, idims, Is::Vararg{Any, N}) where N
quote
is = @inbounds CartesianIndices(idims)[i]
Base.Cartesian.@nexprs $N j -> I_j = @inbounds((Is[j])[is[j]])
dv = src[i]
Base.Cartesian.@nexprs $N j -> I_j = @inbounds((Is[j])[is[j]])
Base.Cartesian.@ncall $N _accum! op dest dv j -> I_j
end
end
Expand Down

0 comments on commit c7742bf

Please sign in to comment.