Skip to content

Commit

Permalink
rename functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Nov 11, 2023
1 parent 9acfde8 commit fc56dcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/_BSplineSpace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ isdegenerate(P::BSplineSpace) = isdegenerate_R(P)
isnondegenerate(P::BSplineSpace, i::Integer) = isnondegenerate_R(P, i)
isnondegenerate(P::BSplineSpace) = isnondegenerate_R(P)

function _degeneratize_R(P::BSplineSpace{p}) where p
function _nondegeneratize_R(P::BSplineSpace{p}) where p

Check warning on line 276 in src/_BSplineSpace.jl

View check run for this annotation

Codecov / codecov/patch

src/_BSplineSpace.jl#L276

Added line #L276 was not covered by tests
k = copy(KnotVector(knotvector(P)))
I = Int[]
for i in 1:dim(P)
Expand All @@ -282,7 +282,7 @@ function _degeneratize_R(P::BSplineSpace{p}) where p
deleteat!(BasicBSpline._vec(k), I)
return BSplineSpace{p}(k)
end
function _degeneratize_I(P::BSplineSpace{p}) where p
function _nondegeneratize_I(P::BSplineSpace{p}) where p
k = copy(KnotVector(knotvector(P)))
l = length(k)
I = Int[]
Expand Down
4 changes: 2 additions & 2 deletions src/_ChangeBasis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ function _changebasis_I_old(P::BSplineSpace{p,T}, P′::BSplineSpace{p′,T′})
end

function __changebasis_I_old(P1, P2)
_P1 = _degeneratize_I(P1)
_P2 = _degeneratize_I(P2)
_P1 = _nondegeneratize_I(P1)
_P2 = _nondegeneratize_I(P2)
A = _changebasis_I_old(P1,P2)
_A = zero(A)
_A[isnondegenerate_I.(P1,1:dim(P1)), isnondegenerate_I.(P2,1:dim(P2))] = _changebasis_I_old(_P1,_P2)
Expand Down

0 comments on commit fc56dcb

Please sign in to comment.