We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a699e7 commit 4af130fCopy full SHA for 4af130f
1 file changed
src/Utilities/mutable_arithmetics.jl
@@ -280,3 +280,8 @@ function MA.mutable_operate!(op::MA.AddSubMul, f::MOI.ScalarQuadraticFunction{T}
280
return MA.mutable_operate!(MA.add_sub_op(op), f, *(args...))
281
end
282
283
+# `args` could be `(x', a)` where `a` is a vector of constants and `x` a vector
284
+# of affine functions for instance.
285
+function MA.mutable_operate!(op::MA.AddSubMul, f::TypedScalarLike, args::Vararg{Any, N}) where N
286
+ return MA.mutable_operate!(MA.add_sub_op(op), f, *(args...))
287
+end
0 commit comments