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 @@ -1810,9 +1810,7 @@ function dual_set(s::SetWithDotProducts)
18101810 return LinearCombinationInSet (s. set, s. vectors)
18111811end
18121812
1813- function dual_set_type (
1814- :: Type{SetWithDotProducts{S,V}} ,
1815- ) where {S,V}
1813+ function dual_set_type (:: Type{SetWithDotProducts{S,V}} ) where {S,V}
18161814 return LinearCombinationInSet{S,V}
18171815end
18181816
@@ -1830,10 +1828,7 @@ end
18301828dimension (s:: LinearCombinationInSet ) = length (s. vectors) + simension (s. set)
18311829
18321830function dual_set (s:: LinearCombinationInSet )
1833- return SetWithDotProducts (
1834- s. side_dimension,
1835- s. matrices,
1836- )
1831+ return SetWithDotProducts (s. side_dimension, s. matrices)
18371832end
18381833
18391834function dual_set_type (:: Type{LinearCombinationInSet{S,V}} ) where {S,V}
You can’t perform that action at this time.
0 commit comments