Skip to content

Commit

Permalink
Add copy
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 5, 2024
1 parent 114fa43 commit c126a57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,10 @@ struct SetWithDotProducts{S,V} <: AbstractVectorSet
vectors::Vector{V}
end

function Base.copy(s::SetWithDotProducts)
return SetWithDotProducts(copy(s.set), copy(s.vectors))
end

function dimension(s::SetWithDotProducts)
return length(s.vectors) + dimension(s.set)
end
Expand Down

0 comments on commit c126a57

Please sign in to comment.