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 353f023 commit 6a6a6c8Copy full SHA for 6a6a6c8
src/Utils.jl
@@ -147,7 +147,7 @@ array. The use of `@turbo` macro gives a significant performance boost.
147
- `best`: The index of the minimum value in the `dij` array.
148
"""
149
fast_findmin(dij, n) = begin
150
- x = @fastmath foldl(min, dij)
+ x = @fastmath foldl(min, @view(dij[begin:n]))
151
i = findfirst(==(x), dij)::Int
152
x, i
153
end
0 commit comments