Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect changebasis_I #346

Closed
hyrodium opened this issue Dec 9, 2023 · 0 comments · Fixed by #345
Closed

Incorrect changebasis_I #346

hyrodium opened this issue Dec 9, 2023 · 0 comments · Fixed by #345

Comments

@hyrodium
Copy link
Owner

hyrodium commented Dec 9, 2023

julia> using BasicBSpline

julia> P = BSplineSpace{4, Int64, KnotVector{Int64}}(KnotVector([1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 7]))
BSplineSpace{4, Int64, KnotVector{Int64}}(KnotVector([1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 7]))

julia> P′ = BSplineSpace{5, Int64, KnotVector{Int64}}(KnotVector([1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6]))
BSplineSpace{5, Int64, KnotVector{Int64}}(KnotVector([1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6]))

julia> changebasis_I(P, P′)
6×10 SparseArrays.SparseMatrixCSC{Float64, Int32} with 27 stored entries:
       2.8   0.4                                 
      -4.4   2.0   0.8                            
  2.8   2.8  -1.6   0.4  0.8  0.45  0.05  0.05  0.05  0.05
 -0.2  -0.2   0.2  -0.2  0.2  0.5   0.5   0.5   0.5   0.5
                         0.05  0.45              
                                               
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant