Skip to content

Commit

Permalink
Merge pull request #1073 from JuliaReach/schillic/1063
Browse files Browse the repository at this point in the history
Missing part of #1069
  • Loading branch information
schillic authored Jan 26, 2019
2 parents e26fd52 + aad21f5 commit 2fd7689
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 2fd7689

Please sign in to comment.