Skip to content

Commit

Permalink
add copy(::SubKnotVector)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Nov 11, 2023
1 parent 4259f0c commit 39dd3ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/_KnotVector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ SubKnotVector{T,S}(k::SubKnotVector{T,S}) where {T,S} = k
Base.copy(k::EmptyKnotVector{T}) where T = k
Base.copy(k::KnotVector{T}) where T = unsafe_knotvector(T,copy(_vec(k)))
Base.copy(k::UniformKnotVector{T}) where T = unsafe_uniformknotvector(T,copy(_vec(k)))
Base.copy(k::SubKnotVector{T}) where T = unsafe_knotvector(T,copy(_vec(k)))

KnotVector(k::KnotVector) = k
KnotVector(k::AbstractKnotVector{T}) where T = unsafe_knotvector(T,_vec(k))
Expand Down

0 comments on commit 39dd3ac

Please sign in to comment.