-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3684 from JuliaReach/schillic/zonotope
`Zonotope`: revise docs entries, shorten docs, shorten signature
- Loading branch information
Showing
11 changed files
with
125 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
""" | ||
center(Z::Zonotope) | ||
Return the center of a zonotope. | ||
### Input | ||
- `Z` -- zonotope | ||
### Output | ||
The center of the zonotope. | ||
""" | ||
function center(Z::Zonotope) | ||
return Z.center | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
""" | ||
convert(::Type{Zonotope}, Z::AbstractZonotope) | ||
Convert a zonotopic set to a zonotope. | ||
### Input | ||
- `Zonotope` -- target type | ||
- `H` -- zonotopic set | ||
### Output | ||
A zonotope. | ||
""" | ||
function convert(::Type{Zonotope}, Z::AbstractZonotope) | ||
return Zonotope(center(Z), genmat(Z)) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1 @@ | ||
""" | ||
ngens(Z::Zonotope) | ||
Return the number of generators of a zonotope. | ||
### Input | ||
- `Z` -- zonotope | ||
### Output | ||
An integer representing the number of generators. | ||
""" | ||
ngens(Z::Zonotope) = size(Z.generators, 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
""" | ||
togrep(Z::Zonotope) | ||
Return a generator representation of a zonotope. | ||
### Input | ||
- `Z` -- zonotope | ||
### Output | ||
The same set `Z`. | ||
""" | ||
function togrep(Z::Zonotope) | ||
return Z | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters