Skip to content

Commit

Permalink
Fix MA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Feb 21, 2020
1 parent 9a699e7 commit 4af130f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Utilities/mutable_arithmetics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,8 @@ function MA.mutable_operate!(op::MA.AddSubMul, f::MOI.ScalarQuadraticFunction{T}
return MA.mutable_operate!(MA.add_sub_op(op), f, *(args...))
end
end
# `args` could be `(x', a)` where `a` is a vector of constants and `x` a vector
# of affine functions for instance.
function MA.mutable_operate!(op::MA.AddSubMul, f::TypedScalarLike, args::Vararg{Any, N}) where N
return MA.mutable_operate!(MA.add_sub_op(op), f, *(args...))
end

2 comments on commit 4af130f

@blegat
Copy link
Member Author

@blegat blegat commented on 4af130f Feb 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/9870

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.9.11 -m "<description of version>" 4af130fe5c8f1fb7ef2da0289b5829daaa71a257
git push origin v0.9.11

Please sign in to comment.