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

SparseArrays use != 0 instead of !iszero and that conflics with the use of Symbolics) #42536

Closed
Suavesito-Olimpiada opened this issue Oct 7, 2021 · 1 comment

Comments

@Suavesito-Olimpiada
Copy link
Contributor

Using the Num type from the Symbolics.jl library with SparseArrays does not work. This happens because ==(x::Num, y::Real) returns a symbolic expression instead of a Bool.

Symbolics defines iszero in a way that it return a Bool so I think it could be changed all the comparisons to zero to iszero and have a greater compatibility for more types and libraries.

@andreasnoack
Copy link
Member

Dup of https://github.com/JuliaLang/julia/issues/30573

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

No branches or pull requests

2 participants