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
Unable to sum ::SparseVector{Num,Int}
s
#42730
Comments
For example, the docstring for julia> using Symbolics
julia> @variables x
1-element Vector{Num}:
x
julia> iszero(x)
false
julia> x == zero(x)
x == 0 Opening an issue in |
I can't find this addressed directly in the Symbolics.jl repo. But this blog post suggests that the behavior of the code in my comment above is desirable for something other than facilitating generic programming (you can read about it there). At any rate, it is a conscious decision. At first glance, I would have said it's better to construct an equation expression with a different function (not |
In any case, it's rather arbitrary to draw the line between |
Should be moved to SparseArrays.jl |
From https://discourse.julialang.org/t/is-there-a-defined-minimal-interface-for-a-type-to-work-with-sparsearrays/69602/2
The text was updated successfully, but these errors were encountered: