Skip to content

Commit 7b782f5

Browse files
committed
Add copy
1 parent 84097c1 commit 7b782f5

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
@@ -1802,6 +1802,10 @@ struct SetWithDotProducts{S,V} <: AbstractVectorSet
18021802
vectors::Vector{V}
18031803
end
18041804

1805+
function Base.copy(s::SetWithDotProducts)
1806+
return SetWithDotProducts(copy(s.set), copy(s.vectors))
1807+
end
1808+
18051809
function dimension(s::SetWithDotProducts)
18061810
return length(s.vectors) + dimension(s.set)
18071811
end

0 commit comments

Comments
 (0)