Skip to content

Commit c126a57

Browse files
committed
Add copy
1 parent 114fa43 commit c126a57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sets.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,10 @@ struct SetWithDotProducts{S,V} <: AbstractVectorSet
18141814
vectors::Vector{V}
18151815
end
18161816

1817+
function Base.copy(s::SetWithDotProducts)
1818+
return SetWithDotProducts(copy(s.set), copy(s.vectors))
1819+
end
1820+
18171821
function dimension(s::SetWithDotProducts)
18181822
return length(s.vectors) + dimension(s.set)
18191823
end

0 commit comments

Comments
 (0)