Skip to content

Commit

Permalink
Fix indentation in wilkinson.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Mar 11, 2024
1 parent e8e5c23 commit 84fd030
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/algorithms/wilkinson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ function wilkinson_kernel!(buffer, positions, markersize, side::Symbol)
## two allocation sources in the code!
bin_idxs = [Int[] for _ in 1:nbins]

#=
### Binning y-values
#=
### Binning y-values
We now need to bin the y-values into `nbins` bins.
We now need to bin the y-values into `nbins` bins.
This is done by looping through each y-value, calculating
the index of the bin it should be in, and then pushing the index
to the relevant vector in `bin_idxs`.
This is done by looping through each y-value, calculating
the index of the bin it should be in, and then pushing the index
to the relevant vector in `bin_idxs`.
Since the bins are all uniform, we don't actually need to materialize
anything!
=#
Since the bins are all uniform, we don't actually need to materialize
anything!
=#

for (i, y) in enumerate(ys)
current_index = round(Int, (y - ymin)/markersize)
Expand Down

0 comments on commit 84fd030

Please sign in to comment.