Skip to content

Commit

Permalink
EmptySet: remove type parameter from signature
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Dec 16, 2024
1 parent 79161c6 commit ae335cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/lib/sets/EmptySet.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ convert(::Type{EmptySet}, ::LazySet)

```@docs
chebyshev_center_radius(::EmptySet; kwargs...)
complement(::EmptySet{N}) where {N}
complement(::EmptySet)
rand(::Type{EmptySet})
plot_recipe(::EmptySet{N}, ::Any=zero(N)) where {N}
```
Expand Down
5 changes: 3 additions & 2 deletions src/Sets/EmptySet/complement.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
"""
# Extended help
complement(∅::EmptySet{N}) where {N}
complement(∅::EmptySet)
### Output
The [`Universe`](@ref) of the same dimension.
"""
function complement(∅::EmptySet{N}) where {N}
function complement(∅::EmptySet)
require(@__MODULE__, :LazySets; fun_name="complement")

N = eltype(∅)
return Universe{N}(dim(∅))
end

0 comments on commit ae335cb

Please sign in to comment.