Origin (ZeroSet)
LazySets.ZeroSetModule.ZeroSet
— TypeZeroSet{N} <: AbstractSingleton{N}
Type that represents the zero set, i.e., the set that only contains the origin.
Fields
dim
– the ambient dimension of the set
Operations
LazySets.API.dim
— Methoddim(Z::ZeroSet)
Return the ambient dimension of a zero set.
Input
Z
– zero set
Output
The ambient dimension of the zero set.
LazySets.element
— Methodelement(Z::ZeroSet{N}) where {N}
Return the element of a zero set.
Input
Z
– zero set
Output
The element of the zero set, i.e., a zero vector.
LazySets.element
— Methodelement(Z::ZeroSet{N}, ::Int) where {N}
Return the i-th entry of the element of a zero set.
Input
Z
– zero seti
– dimension
Output
The i-th entry of the element of the zero set, i.e., 0.
Base.rand
— Methodrand(::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.
ReachabilityBase.Arrays.rectify
— Methodrectify(Z::ZeroSet)
Concrete rectification of a zero set.
Input
Z
– zero set
Output
The same set.
LazySets.API.reflect
— Methodreflect(Z::ZeroSet)
Concrete reflection of a zero set Z
, resulting in the reflected set -Z
.
Input
Z
– zero set
Output
The same zero set.
Base.:∈
— Method∈(x::AbstractVector, Z::ZeroSet)
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
true
LazySets.API.linear_map
— Methodlinear_map(M::AbstractMatrix, Z::ZeroSet)
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.API.ρ
— Methodρ(d::AbstractVector, Z::ZeroSet)
Evaluate the support function of a zero set in a given direction.
Input
d
– directionZ
– zero set
Output
0
.
LazySets.API.translate
— Methodtranslate(Z::ZeroSet, v::AbstractVector)
Translate (i.e., shift) a zero set by a given vector.
Input
Z
– zero setv
– translation vector
Output
A singleton containing the vector v
.
Undocumented implementations:
Inherited from LazySet
:
complement
concretize
constraints
convex_hull
diameter
eltype
eltype
isoperation
singleton_list
surface
affine_map
exponential_map
is_interior_point
sample
≈
==
⊂
Inherited from ConvexSet
:
Inherited from AbstractPolyhedron
:
Inherited from AbstractPolytope
:
Inherited from AbstractCentrallySymmetricPolytope
:
Inherited from AbstractZonotope
:
Inherited from AbstractHyperrectangle
:
Inherited from AbstractSingleton
: