Skip to content

Commit 395a28d

Browse files
committed
format
1 parent 8f98075 commit 395a28d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/ClusterSequence.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ final jets.
117117
to get the physical PseudoJet.
118118
- `Qtot::Any`: The total energy of the event.
119119
"""
120-
struct ClusterSequence{T<:FourMomentum}
120+
struct ClusterSequence{T <: FourMomentum}
121121
algorithm::JetAlgorithm.Algorithm
122122
power::Float64
123123
R::Float64

src/Utils.jl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ array.
133133
- `dij_min`: The minimum value in the first `n` elements of the `dij` array.
134134
- `best`: The index of the minimum value in the `dij` array.
135135
"""
136-
function fast_findmin(dij::DenseVector{T}, n) where T
136+
function fast_findmin(dij::DenseVector{T}, n) where {T}
137137
laneIndices = SIMD.Vec{8, Int}((1, 2, 3, 4, 5, 6, 7, 8))
138138
minvals = SIMD.Vec{8, T}(Inf)
139139
min_indices = SIMD.Vec{8, Int}(0)
@@ -152,15 +152,18 @@ function fast_findmin(dij::DenseVector{T}, n) where T
152152
end
153153

154154
min_value = SIMD.minimum(minvals)
155-
min_index = @inbounds min_value == minvals[1] ? min_indices[1] : min_value == minvals[2] ? min_indices[2] :
156-
min_value == minvals[3] ? min_indices[3] : min_value == minvals[4] ? min_indices[4] :
157-
min_value == minvals[5] ? min_indices[5] : min_value == minvals[6] ? min_indices[6] :
158-
min_value == minvals[7] ? min_indices[7] : min_indices[8]
155+
min_index = @inbounds min_value == minvals[1] ? min_indices[1] :
156+
min_value == minvals[2] ? min_indices[2] :
157+
min_value == minvals[3] ? min_indices[3] :
158+
min_value == minvals[4] ? min_indices[4] :
159+
min_value == minvals[5] ? min_indices[5] :
160+
min_value == minvals[6] ? min_indices[6] :
161+
min_value == minvals[7] ? min_indices[7] : min_indices[8]
159162

160163
@inbounds @fastmath for _ in 1:remainder
161164
xi = dij[i]
162165
pred = dij[i] < min_value
163-
min_value= ifelse(pred, xi, min_value)
166+
min_value = ifelse(pred, xi, min_value)
164167
min_index = ifelse(pred, i, min_index)
165168
i += 1
166169
end

0 commit comments

Comments
 (0)