Skip to content

Commit

Permalink
add alias 'disjoint' for 'is_intersection_empty'
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Sep 24, 2018
1 parent bf3ca1b commit 6b89716
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
disjoint
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,
disjoint


# --- 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 ---


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

0 comments on commit 6b89716

Please sign in to comment.