Skip to content
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

Merged
merged 4 commits into from
Oct 25, 2018
Merged

Conversation

mforets
Copy link
Member

@mforets mforets commented Oct 24, 2018

Closes #842.

This PR adds P to the default_polyhedra_backend.

@@ -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})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function default_polyhedra_backend(P, N::Type{<:AbstractFloat})
function default_polyhedra_backend(P::HPoly, N::Type{<:AbstractFloat})

Copy link
Member Author

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 :/

Copy link
Member

@schillic schillic Oct 24, 2018

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...

Copy link
Member

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

@mforets
Copy link
Member Author

mforets commented Oct 24, 2018

There is still a problem with the cartesian product (using the default library), that i have reported upstream: JuliaPolyhedra/Polyhedra.jl#132

@mforets mforets merged commit 323d101 into master Oct 25, 2018
@mforets mforets deleted the mforets/824 branch October 25, 2018 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants