-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
Description
When a vector of a variables gets too big (exactly 16 long for some reason...) maximum
throws an error:
julia> u = [Variable(2) for j in 1:15];
julia> maximum(norm.(u));
# works fine
julia> u = [Variable(2) for j in 1:16];
julia> maximum(norm.(u));
ERROR: TypeError: non-boolean (EqConstraint) used in boolean context
Stacktrace:
[1] mapreduce_impl(::typeof(identity), ::typeof(max), ::Array{EucNormAtom,1}, ::Int64, ::Int64) at ./reduce.jl:460
[2] _mapreduce(::typeof(identity), ::typeof(max), ::IndexLinear, ::Array{EucNormAtom,1}) at ./reduce.jl:318
[3] _mapreduce_dim at ./reducedim.jl:305 [inlined]
[4] #mapreduce#537 at ./reducedim.jl:301 [inlined]
[5] mapreduce at ./reducedim.jl:301 [inlined]
[6] _maximum at ./reducedim.jl:650 [inlined]
[7] _maximum at ./reducedim.jl:649 [inlined]
[8] #maximum#543 at ./reducedim.jl:645 [inlined]
[9] maximum(::Array{EucNormAtom,1}) at ./reducedim.jl:645
[10] top-level scope at none:0