Skip to content

Commit

Permalink
Try to specify VectorizationBase.vsum in generated code from `reduc…
Browse files Browse the repository at this point in the history
…tion_to_scalar`
  • Loading branch information
brenhinkeller committed Dec 6, 2023
1 parent 708689f commit 7ecb186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modeling/costs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ reduce_number_of_vectors(x::Float64) =
end
reduction_to_scalar(x::Float64) =
if x == ADDITIVE_IN_REDUCTIONS
:vsum
:(VectorizationBase.vsum)
elseif x == MULTIPLICATIVE_IN_REDUCTIONS
:vprod
elseif x == MAX
Expand Down

0 comments on commit 7ecb186

Please sign in to comment.