Skip to content

Commit

Permalink
changed to view
Browse files Browse the repository at this point in the history
  • Loading branch information
pevnak committed Apr 4, 2024
1 parent 7dc4b21 commit 4268465
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/aggregations/segmented_max.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ function segmented_max_back(Δ, y, x, ψ, bags)
end
else
fi = first(b)
for k in axes(v,1)
v[k] = x[k,fi]
end
v .= @view x[:,fi]
# for k in axes(v,1)
# v[k] = x[k,fi]
# end
idxs .= fi
for j in b
for i in axes(x,1)
Expand Down

0 comments on commit 4268465

Please sign in to comment.