-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error when creating an array with Monomial and other objects #169
Comments
In MultivariatePolynomials, everything that is not a julia> typeof(a)
SymbolicUtils.Sym{Number, Nothing}
julia> promote_type(Int, typeof(a))
Any So we try instead to create an array of terms with coefficients |
No I don't think so, the correct answer is
I think this is a completely fine behavior when it's actually dealing with these terms, but here we are trying to build a plain julia vector of objects, so I feel the reasoning that anything else should be treated as a coefficient should not be leaking outside the package. Not surprisingly it creates surprising problems. It could even happen in packages like Folds or something, which just deal with collections of objects and expect things like vect to just work. |
The problem boils down to:
It should not give a type for which convert is not defined. It should just go |
The text was updated successfully, but these errors were encountered: