File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed
Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 8989function set_dot (
9090 x:: AbstractVector ,
9191 y:: AbstractVector ,
92- set:: Union {
93- MOI. SetWithDotProducts,
94- MOI. LinearCombinationInSet,
95- },
92+ set:: Union{MOI.SetWithDotProducts,MOI.LinearCombinationInSet} ,
9693)
9794 m = length (set. matrices)
9895 return LinearAlgebra. dot (view (x, 1 : m), view (y, 1 : m)) +
160157
161158function dot_coefficients (
162159 a:: AbstractVector ,
163- set:: Union {
164- MOI. SetWithDotProducts,
165- MOI. LinearCombinationInSet,
166- },
160+ set:: Union{MOI.SetWithDotProducts,MOI.LinearCombinationInSet} ,
167161)
168162 b = copy (a)
169163 m = length (set. vectors)
Original file line number Diff line number Diff line change @@ -1822,9 +1822,7 @@ function dual_set(s::SetWithDotProducts)
18221822 return LinearCombinationInSet (s. set, s. vectors)
18231823end
18241824
1825- function dual_set_type (
1826- :: Type{SetWithDotProducts{S,V}} ,
1827- ) where {S,V}
1825+ function dual_set_type (:: Type{SetWithDotProducts{S,V}} ) where {S,V}
18281826 return LinearCombinationInSet{S,V}
18291827end
18301828
@@ -1842,10 +1840,7 @@ end
18421840dimension (s:: LinearCombinationInSet ) = length (s. vectors) + simension (s. set)
18431841
18441842function dual_set (s:: LinearCombinationInSet )
1845- return SetWithDotProducts (
1846- s. side_dimension,
1847- s. matrices,
1848- )
1843+ return SetWithDotProducts (s. side_dimension, s. matrices)
18491844end
18501845
18511846function dual_set_type (:: Type{LinearCombinationInSet{S,V}} ) where {S,V}
You can’t perform that action at this time.
0 commit comments