Empty set (EmptySet)
LazySets.EmptySet
— Type.EmptySet{N<:Real} <: LazySet{N}
Type that represents the empty set, i.e., the set with no elements.
LazySets.∅
— Constant.∅
An EmptySet
instance of type Float64
.
LazySets.dim
— Method.dim(∅::EmptySet)
Return the dimension of the empty set, which is -1 by convention.
Input
∅
– an empty set
Output
-1
by convention.
LazySets.σ
— Method.σ(d::AbstractVector{N}, ∅::EmptySet{N}) where {N<:Real}
Return the support vector of an empty set.
Input
d
– direction∅
– empty set
Output
An error.
LazySets.ρ
— Method.ρ(d::AbstractVector{N}, ∅::EmptySet{N}) where {N<:Real}
Evaluate the support function of an empty set in a given direction.
Input
d
– direction∅
– empty set
Output
An error.
Base.:∈
— Method.∈(x::AbstractVector{N}, ∅::EmptySet{N}) where {N<:Real}
Check whether a given point is contained in an empty set.
Input
x
– point/vector∅
– empty set
Output
The output is always false
.
Examples
julia> [1.0, 0.0] ∈ ∅
false
LazySets.an_element
— Method.an_element(∅::EmptySet)
Return some element of an empty set.
Input
∅
– empty set
Output
An error.
Base.rand
— Method.rand(::Type{EmptySet}; [N]::Type{<:Real}=Float64, [dim]::Int=0,
[rng]::AbstractRNG=GLOBAL_RNG, [seed]::Union{Int, Nothing}=nothing)
Create an empty set (note that there is nothing to randomize).
Input
EmptySet
– type for dispatchN
– (optional, default:Float64
) numeric typedim
– (optional, default: 0) dimension (is ignored)rng
– (optional, default:GLOBAL_RNG
) random number generatorseed
– (optional, default:nothing
) seed for reseeding
Output
The (only) empty set of the given numeric type.
LazySets.isbounded
— Method.isbounded(∅::EmptySet)
Determine whether an empty set is bounded.
Input
∅
– empty set
Output
true
.
Base.isempty
— Method.isempty(∅::EmptySet)
Return if the empty set is empty or not.
Input
∅
– empty set
Output
true
.
LazySets.isuniversal
— Method.isuniversal(∅::EmptySet{N}, [witness]::Bool=false) where {N<:Real}
Check whether an empty is universal.
Input
∅
– empty setwitness
– (optional, default:false
) compute a witness if activated
Output
- If
witness
option is deactivated:false
- If
witness
option is activated:(false, v)
where $v ∉ S$, although we currently throw an error
LinearAlgebra.norm
— Function.norm(S::EmptySet, [p]::Real=Inf)
Return the norm of an empty set. It is the norm of the enclosing ball (of the given $p$-norm) of minimal volume that is centered in the origin.
Input
S
– empty setp
– (optional, default:Inf
) norm
Output
An error.
LazySets.radius
— Function.radius(S::EmptySet, [p]::Real=Inf)
Return the radius of an empty set. It is the radius of the enclosing ball (of the given $p$-norm) of minimal volume with the same center.
Input
S
– empty setp
– (optional, default:Inf
) norm
Output
An error.
LazySets.diameter
— Function.diameter(S::EmptySet, [p]::Real=Inf)
Return the diameter of an empty set. It is the maximum distance between any two elements of the set, or, equivalently, the diameter of the enclosing ball (of the given $p$-norm) of minimal volume with the same center.
Input
S
– empty setp
– (optional, default:Inf
) norm
Output
An error.
LazySets.linear_map
— Method.linear_map(M::AbstractMatrix{N}, ∅::EmptySet{N}) where {N}
Return the linear map of an empty set.
Input
M
– matrix∅
– empty set
Output
The empty set.
LazySets.translate
— Method.translate(∅::EmptySet{N}, v::AbstractVector{N}) where {N<:Real}
Translate (i.e., shift) an empty set by a given vector.
Input
∅
– empty setv
– translation vector
Output
The empty set.
LazySets.plot_recipe
— Method.plot_recipe(∅::EmptySet{N}, [ε]::N=zero(N)) where {N<:Real}
Convert an empty set to a sequence of points for plotting. In the special case of an empty set, we define the sequence as nothing
.
Input
∅
– empty setε
– (optional, default:0
) ignored, used for dispatch
Output
nothing
.
RecipesBase.apply_recipe
— Method.plot_emptyset(∅::EmptySet, [ε]::N=zero(N); ...)
Plot an empty set.
Input
∅
– empty setε
– (optional, default:0
) ignored, used for dispatch
Inherited from LazySet
: