Skip to content

Commit f7fa288

Browse files
committed
Fix format
1 parent 2c38cb0 commit f7fa288

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/Utilities/set_dot.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ end
8989
function 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)) +
@@ -160,10 +157,7 @@ end
160157

161158
function 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)

src/sets.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,9 +1822,7 @@ function dual_set(s::SetWithDotProducts)
18221822
return LinearCombinationInSet(s.set, s.vectors)
18231823
end
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}
18291827
end
18301828

@@ -1842,10 +1840,7 @@ end
18421840
dimension(s::LinearCombinationInSet) = length(s.vectors) + simension(s.set)
18431841

18441842
function dual_set(s::LinearCombinationInSet)
1845-
return SetWithDotProducts(
1846-
s.side_dimension,
1847-
s.matrices,
1848-
)
1843+
return SetWithDotProducts(s.side_dimension, s.matrices)
18491844
end
18501845

18511846
function dual_set_type(::Type{LinearCombinationInSet{S,V}}) where {S,V}

0 commit comments

Comments
 (0)