-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Reported on slack in the math-optimization
channel
julia> using JuMP
julia> model = Model();
julia> @variable(model, x);
julia> A = ones(2, 2);
julia> B = AffExpr.(A);
julia> JuMP._MA.@rewrite(B + x * A)
ERROR: StackOverflowError:
Stacktrace:
[1] mutable_operate!(::typeof(MutableArithmetics.add_mul), ::Array{GenericAffExpr{Float64,VariableRef},2}, ::VariableRef, ::Array{Float64,2}) at /home/blegat/.julia/packages/MutableArithmetics/ZGFsK/src/linear_algebra.jl:69
julia> JuMP._MA.mutable_operate!(JuMP._MA.add_mul, B, x, A)
ERROR: StackOverflowError:
Stacktrace:
[1] mutable_operate!(::typeof(MutableArithmetics.add_mul), ::Array{GenericAffExpr{Float64,VariableRef},2}, ::VariableRef, ::Array{Float64,2}) at /home/blegat/.julia/packages/MutableArithmetics/ZGFsK/src/linear_algebra.jl:69
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working