Origin (ZeroSet)
LazySets.ZeroSet — Type.ZeroSet{N<:Real} <: AbstractSingleton{N}Type that represents the zero set, i.e., the set that only contains the origin.
Fields
dim– the ambient dimension of this zero set
LazySets.dim — Method.dim(Z::ZeroSet)Return the ambient dimension of this zero set.
Input
Z– a zero set, i.e., a set that only contains the origin
Output
The ambient dimension of the zero set.
LazySets.σ — Method.σ(d::AbstractVector{N}, Z::ZeroSet{N}) where {N<:Real}Return the support vector of a zero set.
Input
d– directionZ– a zero set, i.e., a set that only contains the origin
Output
The returned value is the origin since it is the only point that belongs to this set.
LazySets.ρ — Method.ρ(d::AbstractVector{N}, Z::ZeroSet{N}) where {N<:Real}Evaluate the support function of a zero set in a given direction.
Input
d– directionZ– a zero set, i.e., a set that only contains the origin
Output
0.
Base.:∈ — Method.∈(x::AbstractVector{N}, Z::ZeroSet{N}) where {N<:Real}Check whether a given point is contained in a zero set.
Input
x– point/vectorZ– zero set
Output
true iff $x ∈ Z$.
Examples
julia> Z = ZeroSet(2);
julia> [1.0, 0.0] ∈ Z
false
julia> [0.0, 0.0] ∈ Z
trueBase.rand — Method.rand(::Type{ZeroSet}; [N]::Type{<:Real}=Float64, [dim]::Int=2,
[rng]::AbstractRNG=GLOBAL_RNG, [seed]::Union{Int, Nothing}=nothing)Create a zero set (note that there is nothing to randomize).
Input
ZeroSet– type for dispatchN– (optional, default:Float64) numeric typedim– (optional, default: 2) dimensionrng– (optional, default:GLOBAL_RNG) random number generatorseed– (optional, default:nothing) seed for reseeding
Output
The (only) zero set of the given numeric type and dimension.
LazySets.element — Method.element(S::ZeroSet{N}) where {N<:Real}Return the element of a zero set.
Input
S– zero set
Output
The element of the zero set, i.e., a zero vector.
LazySets.element — Method.element(S::ZeroSet{N}, ::Int) where {N<:Real}Return the i-th entry of the element of a zero set.
Input
S– zero seti– dimension
Output
The i-th entry of the element of the zero set, i.e., 0.
LazySets.linear_map — Method.linear_map(M::AbstractMatrix{N}, Z::ZeroSet{N}) where {N<:Real}Concrete linear map of a zero set.
Input
M– matrixZ– zero set
Output
The zero set whose dimension matches the output dimension of the given matrix.
LazySets.translate — Method.translate(Z::ZeroSet{N}, v::AbstractVector{N}) where {N<:Real}Translate (i.e., shift) a zero set by a given vector.
Input
Z– zero setv– translation vector
Output
A singleton containing the vector v.
Inherited from LazySet:
Inherited from AbstractPolytope:
Inherited from AbstractCentrallySymmetricPolytope:
Inherited from AbstractZonotope:
Inherited from AbstractHyperrectangle:
Inherited from AbstractSingleton: