Skip to content

Commit

Permalink
bugfix: wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Jul 23, 2018
1 parent adf1b7d commit c8d7521
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/VPolytope.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ The support vector in the given direction.
"""
function σ(d::AbstractVector{<:Real}, P::VPolytope; algorithm="hrep")::Vector{<:Real}
if algorithm == "hrep"
@assert isdefined(@__MODULE__, :Polyhedra) "you need to load Polyhedra for this algorithm"
@assert isdefined(@__MODULE__, :Polyhedra) "this algorithm needs the " *
"package 'Polyhedra' loaded"
return σ(d, tohrep(P))
else
error("the algorithm $(hrep) is not known")
error("the algorithm $algorithm is not known")
end
end

Expand Down

0 comments on commit c8d7521

Please sign in to comment.