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

Missing method for == on sparse vectors #246

Closed
Keno opened this issue Sep 3, 2022 · 0 comments · Fixed by #248
Closed

Missing method for == on sparse vectors #246

Keno opened this issue Sep 3, 2022 · 0 comments · Fixed by #248

Comments

@Keno
Copy link
Contributor

Keno commented Sep 3, 2022

The following tries to iterate all elements of the sparse vector and takes forever:

julia> using SparseArrays

julia> a = SparseVector(div(typemax(Int), 2), [1], [1])
4611686018427387903-element SparseVector{Int64, Int64} with 1 stored entry:
  [1]  =  1

julia> a == a
SobhanMP added a commit that referenced this issue Sep 6, 2022
SobhanMP added a commit that referenced this issue Sep 22, 2022
Closes #246

Co-authored-by: Daniel Karrasch <daniel.karrasch@posteo.de>
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