Skip to content

Commit

Permalink
Update getlibraryfor
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Mar 2, 2017
1 parent 9a6ed02 commit c667e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/polyhedron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ function polyhedron(lib::CDDLibrary; eqs=nothing, ineqs=nothing, points=nothing,
CDDPolyhedron{N, T}(eqs=eqs, ineqs=ineqs, points=points, rays=rays)
end

getlibraryfor{T<:Real}(::CDDPolyhedron, ::Type{T}) = CDDLibrary(:exact)
getlibraryfor{T<:AbstractFloat}(::CDDPolyhedron, ::Type{T}) = CDDLibrary(:float)
getlibraryfor{T<:Real}(::CDDPolyhedron, n::Int, ::Type{T}) = CDDLibrary(:exact)
getlibraryfor{T<:AbstractFloat}(::CDDPolyhedron, n::Int, ::Type{T}) = CDDLibrary(:float)

# need to specify to avoid ambiguïty
Base.convert{N, T}(::Type{CDDPolyhedron{N, T}}, rep::HRepresentation{N}) = CDDPolyhedron{N, T}(cddmatrix(T, rep))
Expand Down

0 comments on commit c667e97

Please sign in to comment.