-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dimension error for default Polyhedra backend in >= v0.7 #848
Conversation
@@ -148,12 +148,12 @@ else | |||
points, | |||
default_library | |||
|
|||
function default_polyhedra_backend(N::Type{<:AbstractFloat}) | |||
return default_library(2, Float64) | |||
function default_polyhedra_backend(P, N::Type{<:AbstractFloat}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function default_polyhedra_backend(P, N::Type{<:AbstractFloat}) | |
function default_polyhedra_backend(P::HPoly, N::Type{<:AbstractFloat}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i had this, but then removed because HPoly
is not yet defined at this place :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But you have it for the other methods, see here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed you have to remove it there:
Got an exception of type LoadError outside of a @test
LoadError: no default backend for numeric type Float64
Stacktrace:
[1] default_polyhedra_backend(::LazySets.VPolytope{Float64}, ::Type{T} where T) at /home/travis/.julia/v0.6/LazySets/src/AbstractPolytope.jl:112
There is still a problem with the cartesian product (using the default library), that i have reported upstream: JuliaPolyhedra/Polyhedra.jl#132 |
Closes #842.
This PR adds P to the default_polyhedra_backend.