|
1 | 1 | export inequalities, basic_semialgebraic_set |
2 | 2 |
|
3 | | -struct BasicSemialgebraicSet{T,PT<:APL{T},AT<:AbstractAlgebraicSet} <: |
| 3 | +struct BasicSemialgebraicSet{T,PT<:_APL{T},AT<:AbstractAlgebraicSet} <: |
4 | 4 | AbstractBasicSemialgebraicSet |
5 | 5 | V::AT |
6 | 6 | p::Vector{PT} |
7 | 7 | end |
8 | | -function BasicSemialgebraicSet{T,PT}() where {T,PT<:APL{T}} |
| 8 | +function BasicSemialgebraicSet{T,PT}() where {T,PT<:_APL{T}} |
9 | 9 | return BasicSemialgebraicSet(AlgebraicSet{T,PT}(), PT[]) |
10 | 10 | end |
11 | 11 | function BasicSemialgebraicSet( |
12 | 12 | V::AlgebraicSet{T,PT,A,S}, |
13 | 13 | p::Vector{PT}, |
14 | | -) where {T,PT<:APL{T},A,S<:AbstractAlgebraicSolver} |
| 14 | +) where {T,PT<:_APL{T},A,S<:AbstractAlgebraicSolver} |
15 | 15 | return BasicSemialgebraicSet{T,PT,typeof(V)}(V, p) |
16 | 16 | end |
17 | 17 | function BasicSemialgebraicSet( |
18 | 18 | V::AlgebraicSet{T,PT,A,SO,U}, |
19 | 19 | p::Vector{PS}, |
20 | | -) where {T,PT<:APL{T},S,PS<:APL{S},A,SO<:AbstractAlgebraicSolver,U} |
| 20 | +) where {T,PT<:_APL{T},S,PS<:_APL{S},A,SO<:AbstractAlgebraicSolver,U} |
21 | 21 | ST = promote_type(T, S) |
22 | 22 | PST = promote_type(PT, PS) |
23 | 23 | return BasicSemialgebraicSet( |
24 | 24 | convert(AlgebraicSet{ST,PST,A,SO,U}, V), |
25 | 25 | Vector{PST}(p), |
26 | 26 | ) |
27 | 27 | end |
28 | | -#BasicSemialgebraicSet{T, PT<:APL{T}}(V::AlgebraicSet{T, PT}, p::Vector{PT}) = BasicSemialgebraicSet{T, PT}(V, p) |
| 28 | +#BasicSemialgebraicSet{T, PT<:_APL{T}}(V::AlgebraicSet{T, PT}, p::Vector{PT}) = BasicSemialgebraicSet{T, PT}(V, p) |
29 | 29 | function basic_semialgebraic_set(V, p) |
30 | 30 | return BasicSemialgebraicSet(V, p) |
31 | 31 | end |
|
50 | 50 |
|
51 | 51 | function MP.variables( |
52 | 52 | S::BasicSemialgebraicSet{T,PT,FullSpace}, |
53 | | -) where {T,PT<:APL{T}} |
| 53 | +) where {T,PT<:_APL{T}} |
54 | 54 | return MP.variables(S.p) |
55 | 55 | end |
56 | 56 | function MP.variables(S::BasicSemialgebraicSet) |
|
0 commit comments