We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const sp=spzeros(Int,1_000_000_000) 1000000000-element SparseVector{Int64, Int64} with 0 stored entries @btime hash(sp) 182.608 ms (0 allocations: 0 bytes)
I can create a PR with the alternative implementation if you agree with it
@btime hash((sp.nzind, sp.nzval, sp.n)) 4.208 ns (0 allocations: 0 bytes)
The text was updated successfully, but these errors were encountered:
Needs to satisfy these properties I think:
julia> using SparseArrays julia> x = zeros(5); xs = spzeros(5); julia> isequal(x, xs) true julia> hash(x) == hash(xs) true
Sorry, something went wrong.
No branches or pull requests
I can create a PR with the alternative implementation if you agree with it
The text was updated successfully, but these errors were encountered: