Skip to content

Commit

Permalink
use 'swap' function
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Oct 15, 2018
1 parent e425522 commit 06655fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Approximations/overapproximate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,5 @@ function overapproximate(cap::Intersection{N,
dir::AbstractDirections{N};
kwargs...
) where {N<:Real}
return overapproximate(cap.Y cap.X, dir; kwargs...)
return overapproximate(swap(cap), dir; kwargs...)
end
6 changes: 3 additions & 3 deletions src/Intersection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function ρ(d::AbstractVector{N},
<:LazySet{N}};
algorithm::String="line_search",
kwargs...) where N<:Real
return ρ_helper(d, cap.Y cap.X, algorithm; kwargs...)
return ρ_helper(d, swap(cap), algorithm; kwargs...)
end

"""
Expand Down Expand Up @@ -435,7 +435,7 @@ end
function ρ(d::AbstractVector{N},
cap::Intersection{N, <:AbstractPolytope{N}, <:LazySet{N}};
kwargs...) where {N<:Real}
return ρ(d, cap.Y cap.X; kwargs...)
return ρ(d, swap(cap); kwargs...)
end

# disambiguation
Expand Down Expand Up @@ -464,7 +464,7 @@ function ρ(d::AbstractVector{N},
<:AbstractPolytope{N}};
algorithm::String="line_search",
kwargs...) where N<:Real
return ρ_helper(d, cap.Y cap.X, algorithm; kwargs...)
return ρ_helper(d, swap(cap), algorithm; kwargs...)
end

"""
Expand Down

0 comments on commit 06655fd

Please sign in to comment.