Skip to content

Commit

Permalink
add more BSplineSpace constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Oct 16, 2023
1 parent 2747acb commit d070d88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/_BSplineSpace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ end
function BSplineSpace{p,T,K}(P::BSplineSpace{p}) where {p,T,K}
return BSplineSpace{p,T}(K(knotvector(P)))
end
function BSplineSpace{p,T,K}(k::AbstractKnotVector) where {p,T,K}
return BSplineSpace{p,T}(K(k))
end

# Broadcast like a scalar
Base.Broadcast.broadcastable(P::BSplineSpace) = Ref(P)
Expand Down

0 comments on commit d070d88

Please sign in to comment.