Skip to content

Commit 01fa32c

Browse files
committed
Add low rank matrix
1 parent 7e11ac9 commit 01fa32c

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
@@ -1847,6 +1847,23 @@ function dual_set_type(::Type{LinearCombinationInSet{S,V}}) where {S,V}
18471847
return SetWithDotProducts{S,V}
18481848
end
18491849

1850+
"""
1851+
struct LowRankMatrix{T}
1852+
diagonal::Vector{T}
1853+
factor::Matrix{T}
1854+
end
1855+
1856+
`factor * Diagonal(diagonal) * factor'`.
1857+
"""
1858+
struct LowRankMatrix{T}
1859+
diagonal::Vector{T}
1860+
factor::Matrix{T}
1861+
end
1862+
1863+
struct TriangleVectorization{M}
1864+
matrix::M
1865+
end
1866+
18501867
"""
18511868
SOS1{T<:Real}(weights::Vector{T})
18521869

0 commit comments

Comments
 (0)