Skip to content

Commit

Permalink
added symmetric method
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Jan 26, 2019
1 parent e26fd52 commit aad21f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/concrete_intersection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -646,3 +646,13 @@ The polytope obtained by the intersection of `l.M * L.X` and `S`.
function intersection(L::LinearMap{N}, S::LazySet{N}) where {N}
return intersection(linear_map(L.M, L.X), S)
end

# symmetric method
function intersection(S::LazySet{N}, L::LinearMap{N}) where {N}
return intersection(L, S)
end

# disambiguation
function intersection(L1::LinearMap{N}, L2::LinearMap{N}) where {N}
return intersection(linear_map(L1.M, L1.X), linear_map(L2.M, L2.X))
end

0 comments on commit aad21f5

Please sign in to comment.