Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outsource VPolytope to its own module #3582

Merged
merged 5 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 21 additions & 11 deletions docs/src/lib/sets/VPolytope.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,43 @@
```@meta
CurrentModule = LazySets
CurrentModule = LazySets.VPolytopeModule
```

# [Polytope in vertex representation (VPolytope)](@id def_VPolytope)

```@docs
VPolytope
```

## Operations

```@docs
constraints_list(::VPolytope)
dim(::VPolytope)
σ(::AbstractVector, ::VPolytope)
ρ(::AbstractVector, ::VPolytope)
∈(::AbstractVector{N}, ::VPolytope{N}) where {N}
polyhedron(::VPolytope)
rand(::Type{VPolytope})
translate(::VPolytope, ::AbstractVector)
translate!(::VPolytope, ::AbstractVector)
vertices_list(::VPolytope)
remove_redundant_vertices(::VPolytope{N}) where {N}
constraints_list(::VPolytope)
reflect(::VPolytope)
tohrep(::VPolytope{N}) where {N}
tovrep(::VPolytope)
polyhedron(::VPolytope)
vertices_list(::VPolytope)
linear_map(::AbstractMatrix, ::VPolytope)
reflect(::VPolytope)
∈(::AbstractVector{N}, ::VPolytope{N}) where {N}
ρ(::AbstractVector, ::VPolytope)
σ(::AbstractVector, ::VPolytope)
translate(::VPolytope, ::AbstractVector)
translate!(::VPolytope, ::AbstractVector)
```

```@meta
CurrentModule = LazySets
```

Inherited from [`LazySet`](@ref):
* [`diameter`](@ref diameter(::LazySet, ::Real))
* [`high`](@ref high(::LazySet))
* [`low`](@ref low(::LazySet))
* [`norm`](@ref norm(::LazySet, ::Real))
* [`radius`](@ref radius(::LazySet, ::Real))
* [`diameter`](@ref diameter(::LazySet, ::Real))
* [`singleton_list`](@ref singleton_list(::LazySet))

Inherited from [`AbstractPolyhedron`](@ref):
Expand Down
1 change: 0 additions & 1 deletion src/Initialization/init_Polyhedra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ end

eval(load_polyhedra_hpolytope())
eval(load_polyhedra_hpolyhedron())
eval(load_polyhedra_vpolytope())
eval(load_polyhedra_mesh())
eval(load_polyhedra_lazyset())
8 changes: 7 additions & 1 deletion src/LazySets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,11 @@ include("Sets/DensePolynomialZonotope/DensePolynomialZonotopeModule.jl")
@reexport using ..DensePolynomialZonotopeModule: DensePolynomialZonotope

include("Sets/HPolygon.jl")

include("Sets/HPolygonOpt.jl")

include("Sets/HPolytope.jl")

include("Sets/HPolyhedron.jl")

include("Sets/HParallelotope/HParallelotopeModule.jl")
Expand All @@ -132,6 +135,7 @@ include("Sets/HParallelotope/HParallelotopeModule.jl")
offset

include("Sets/Hyperplane.jl")

include("Sets/Hyperrectangle.jl")

include("Sets/Line2D/Line2DModule.jl")
Expand Down Expand Up @@ -162,7 +166,9 @@ Alias for `SimpleSparsePolynomialZonotope`.
const PolynomialZonotope = SimpleSparsePolynomialZonotope

include("Sets/VPolygon.jl")
include("Sets/VPolytope.jl")

include("Sets/VPolytope/VPolytopeModule.jl")
@reexport using ..VPolytopeModule: VPolytope

include("Sets/Polygon/PolygonModule.jl")
@reexport using ..PolygonModule: Polygon
Expand Down
4 changes: 2 additions & 2 deletions src/Sets/Polygon/PolygonModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module PolygonModule

using Reexport

using ..LazySets: LazySet, VPolygon, _ρ_vertices, _σ_vertices,
_plot_recipe_2d_vlist
using ..LazySets: LazySet, VPolygon, _plot_recipe_2d_vlist
using ..LazySets.VPolytopeModule: _ρ_vertices, _σ_vertices

@reexport import ..API: convex_hull, dim, isconvextype, isbounded,
isboundedtype, isempty, isoperationtype, ρ, σ
Expand Down
Loading
Loading