We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99544a5 commit 15c4246Copy full SHA for 15c4246
src/sets.jl
@@ -10,8 +10,21 @@ abstract type AbstractSet end
10
"""
11
dimension(s::AbstractSet)
12
13
-Return the underlying dimension (number of vector components) in the set `s`, i.e.,
14
-``n`` if the set is a subset of ``\\mathbb{R}^n``.
+Return the output dimension that an [`AbstractFunction`](@ref) should have to be used with the set `s`.
+
15
+### Examples
16
17
+```julia-repl
18
+julia> dimension(Reals(4))
19
+4
20
21
+julia> dimension(LessThan(3.0))
22
+1
23
24
+julia> dimension(PositiveSemidefiniteConeTriangle(2))
25
+3
26
+```
27
28
29
function dimension end
30
0 commit comments