Skip to content

Commit

Permalink
#58 - include interface types
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Dec 20, 2017
1 parent 16993b9 commit 6fa2e04
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/LazySets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export LazySet,
ρ, support_function,
σ, support_vector,
dim,
norm,
radius,
diameter,
Approximations

"""
Expand All @@ -20,9 +23,10 @@ Abstract type for a lazy set.
### Notes
Every concrete `LazySet` must define a function `σ(d, X)`, representing the
support vector of `X` in a given direction `d`, and `dim`, the ambient dimension
of the set `X`.
Every concrete `LazySet` must define the following functions:
- `σ(d::AbstractVector{N}, S::LazySet)::AbstractVector{N}` -- the support vector
of `S` in a given direction `d`
- `dim(::LazySet)::Int` -- the ambient dimension of `S`
`LazySet` types should be parameterized with a type `N`, typically `N<:Real`, to
support computations with different numeric types.
Expand All @@ -38,6 +42,15 @@ include("helper_functions.jl")
# ===============================
# Types that inherit from LazySet
# ===============================
# abstract types
include("AbstractPolytope.jl")
include("AbstractPointSymmetric.jl")
include("AbstractPointSymmetricPolytope.jl")
include("AbstractHyperrectangle.jl")
include("AbstractPolygon.jl")
include("AbstractHPolygon.jl")
include("AbstractSingleton.jl")
# concrete types
include("EmptySet.jl")
include("ZeroSet.jl")
include("Singleton.jl")
Expand Down

0 comments on commit 6fa2e04

Please sign in to comment.