Closed chelseas closed 2 years ago
I can reproduce without LazySets
julia> using Polyhedra
julia> using StaticArrays
julia> intersect(HalfSpace(@SVector([1]), 0)) * intersect(HalfSpace([1], 0))
ERROR: MethodError: no method matching sum_fulldim(::Size{(1,)}, ::Int64)
Closest candidates are:
sum_fulldim(::Size{N1}, ::Size{N2}) where {N1, N2} at ~/.julia/dev/Polyhedra/src/dimension.jl:63
sum_fulldim(::Int64, ::Int64) at ~/.julia/dev/Polyhedra/src/dimension.jl:61
Stacktrace:
[1] hcartesianproduct(p1::Polyhedra.Intersection{Int64, SVector{1, Int64}, Size{(1,)}}, p2::Polyhedra.Intersection{Int64, Vector{Int64}, Int64})
@ Polyhedra ~/.julia/dev/Polyhedra/src/repop.jl:147
[2] cartesianproduct(p1::Polyhedra.Intersection{Int64, SVector{1, Int64}, Size{(1,)}}, p2::Polyhedra.Intersection{Int64, Vector{Int64}, Int64})
@ Polyhedra ~/.julia/dev/Polyhedra/src/repop.jl:170
[3] *(p1::Polyhedra.Intersection{Int64, SVector{1, Int64}, Size{(1,)}}, p2::Polyhedra.Intersection{Int64, Vector{Int64}, Int64})
@ Polyhedra ~/.julia/dev/Polyhedra/src/repop.jl:186
[4] top-level scope
@ REPL[4]:1
I am trying to cartesian product two hyperrectangles:
And I get this error:
Anyone know what is up?