-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
How can I make a polynomial matrix-valued? I tried this:
using DynamicPolynomials
@ncpolyvar u
subs(u, u => 2.0) # works
subs(u, u => ones(3,3)) # ERROR: MethodError: no method matching one(::Type{Any})The problem may be related to the promote_rules defined in MultivariatePolynomials?
import MultivariatePolynomials as MP
promote_type(Float64, DynamicPolynomials.PolyVar{false}) # Term{false, Float64}
promote_type(Matrix{Float64}, DynamicPolynomials.PolyVar{false}) # Term{false, Any}I suspect the latter case would need to be Term{false, Matrix{Float64}}. Help would be appreciated!
Reactions are currently unavailable