-
Notifications
You must be signed in to change notification settings - Fork 23
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
Substitution of matrix values #117
Labels
Comments
Thanks for reporting this bug. I'm afk right now so a stacktrace could help |
Input: using DynamicPolynomials
@ncpolyvar u
subs(u, u => ones(3,3)) Output stack trace:
I suspect that the fundamental problem is this: promote_type(Matrix{Float64}, DynamicPolynomials.PolyVar{false}) == Term{false, Any} Somehow the type |
Indeed, as a workaround, you can try |
Perfect, that solves the problem for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I make a polynomial matrix-valued? I tried this:
The problem may be related to the
promote_rules
defined in MultivariatePolynomials?I suspect the latter case would need to be
Term{false, Matrix{Float64}}
. Help would be appreciated!The text was updated successfully, but these errors were encountered: