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

Define hash(::KnotVector, ::UInt) etc. #339

Closed
hyrodium opened this issue Nov 8, 2023 · 0 comments · Fixed by #340
Closed

Define hash(::KnotVector, ::UInt) etc. #339

hyrodium opened this issue Nov 8, 2023 · 0 comments · Fixed by #340

Comments

@hyrodium
Copy link
Owner

hyrodium commented Nov 8, 2023

julia> using BasicBSpline

julia> k1 = KnotVector(1:8)
KnotVector([1, 2, 3, 4, 5, 6, 7, 8])

julia> k2 = KnotVector(1:8)
KnotVector([1, 2, 3, 4, 5, 6, 7, 8])

julia> unique([k1,k2])
2-element Vector{KnotVector{Int64}}:
 KnotVector([1, 2, 3, 4, 5, 6, 7, 8])
 KnotVector([1, 2, 3, 4, 5, 6, 7, 8])

julia> hash(k1)
0x6102a92eefee1b44

julia> hash(k2)
0x32c75152afd72a03
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