Skip to content

Commit e0856f1

Browse files
committed
Add low rank matrix
1 parent a19ca8d commit e0856f1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/sets.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,23 @@ function dual_set_type(::Type{LinearCombinationInSet{S,V}}) where {S,V}
18351835
return SetWithDotProducts{S,V}
18361836
end
18371837

1838+
"""
1839+
struct LowRankMatrix{T}
1840+
diagonal::Vector{T}
1841+
factor::Matrix{T}
1842+
end
1843+
1844+
`factor * Diagonal(diagonal) * factor'`.
1845+
"""
1846+
struct LowRankMatrix{T}
1847+
diagonal::Vector{T}
1848+
factor::Matrix{T}
1849+
end
1850+
1851+
struct TriangleVectorization{M}
1852+
matrix::M
1853+
end
1854+
18381855
"""
18391856
SOS1{T<:Real}(weights::Vector{T})
18401857

0 commit comments

Comments
 (0)