Skip to content

Commit

Permalink
Merge pull request #655 from JuliaReach/schillic/disjoint
Browse files Browse the repository at this point in the history
Add alias 'isdisjoint' for 'is_intersection_empty'
  • Loading branch information
schillic authored Sep 24, 2018
2 parents bf3ca1b + 70ee380 commit a748e1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/lib/binary_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ end
## Check for emptiness of intersection

```@docs
isdisjoint
is_intersection_empty(::AbstractHyperrectangle{N}, ::AbstractHyperrectangle{N}, ::Bool=false) where {N<:Real}
is_intersection_empty(::AbstractHyperrectangle{N}, ::AbstractSingleton{N}, ::Bool=false) where {N<:Real}
is_intersection_empty(::AbstractSingleton{N}, ::LazySet{N}, ::Bool=false) where {N<:Real}
Expand Down
14 changes: 13 additions & 1 deletion src/is_intersection_empty.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export is_intersection_empty
export is_intersection_empty,
isdisjoint


# --- AbstractHyperrectangle ---
Expand Down Expand Up @@ -678,3 +679,14 @@ function is_intersection_empty(hp::Union{Hyperplane{N}, Line{N}},
)::Union{Bool, Tuple{Bool,Vector{N}}} where N<:Real
return is_intersection_empty(X, hp, witness)
end


# --- alias ---


"""
isdisjoint(X, Y)
An alternative name for `is_intersection_empty(X, Y)`.
"""
const isdisjoint = is_intersection_empty

0 comments on commit a748e1b

Please sign in to comment.