We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a508028 commit 8f98075Copy full SHA for 8f98075
src/Utils.jl
@@ -142,8 +142,9 @@ function fast_findmin(dij::DenseVector{T}, n) where T
142
lane = VecRange{8}(0)
143
i = 1
144
@inbounds @fastmath for _ in 1:n_batches
145
- predicate = dij[lane + i] < minvals
146
- minvals = vifelse(predicate, dij[lane + i], minvals)
+ dijs = dij[lane + i]
+ predicate = dijs < minvals
147
+ minvals = vifelse(predicate, dijs, minvals)
148
min_indices = vifelse(predicate, laneIndices, min_indices)
149
150
i += 8
0 commit comments