You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #831 we introduced a misuse in the default backend of Polyhedra: Here we should not pass 2 but dim(P) (and the same a few lines below). The problem is that we do not have P here...
The text was updated successfully, but these errors were encountered:
yes, i hardcoded 2 in default_polyhedra_backend because the default_library for d > 1 does not depend on d, there is just one DefaultLibrary{_default_type(T)}(), see this function.
presumably the default interval library is specialized for interval computations, and i would expect that the general library also works for d=1 (but i havent' checked).
if we want we can still update our functions passing P as well, eg.
functionconvex_hull(P1::HPoly{N},
P2::HPoly{N};
backend=default_polyhedra_backend(P1, N)) where {N}
@assertisdefined(Main, :Polyhedra) "the function `convex_hull` needs "*"the package 'Polyhedra' to be loaded"
Pch =convexhull(polyhedron(P1, backend), polyhedron(P2, backend))
returnconvert(typeof(P1), Pch)
end...functiondefault_polyhedra_backend(P, N::Type{<:AbstractFloat})
returndefault_library(LazySets.dim(P), Float64)
end
With #831 we introduced a misuse in the default backend of
Polyhedra
: Here we should not pass2
butdim(P)
(and the same a few lines below). The problem is that we do not haveP
here...The text was updated successfully, but these errors were encountered: