You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective function
function fn(v)
if !all(v .== r.v)
find_arb!(r, v)
r.v .= v
end
acc = 0.0
for (Δ, Λ, c) in zip(r.Δs, r.Λs, r.cfmms)
acc += @views dot(Λ, v[c.Ai]) - dot(Δ, v[c.Ai]) # This line, no varible changed, why use @views?
end
return f(r.objective, v) + acc
end
acc += @views dot(Λ, v[c.Ai]) - dot(Δ, v[c.Ai]) This line, no varibles changed, why use @views?
The text was updated successfully, but these errors were encountered:
CFMMRouter.jl/src/router.jl
Line 82 in 5932e42
acc += @views dot(Λ, v[c.Ai]) - dot(Δ, v[c.Ai])
This line, no varibles changed, why use @views?The text was updated successfully, but these errors were encountered: