Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Matrix substitution ambiguous #1442

Open
matbesancon opened this issue Feb 18, 2025 · 0 comments
Open

Matrix substitution ambiguous #1442

matbesancon opened this issue Feb 18, 2025 · 0 comments

Comments

@matbesancon
Copy link

H is a matrix of Num, x is a vector of Num

julia> Symbolics.substitute(H, x .=> 0.5)
ERROR: MethodError: substitute(::Matrix{Num}, ::Vector{Pair{Num, Float64}}) is ambiguous.

Candidates:
  substitute(nums::Array{Num}, rules; kw...)
    @ Symbolics ~/.julia/packages/Symbolics/PxO3a/src/equations.jl:145
  substitute(expr, s::Vector; kw...)
    @ Symbolics ~/.julia/packages/Symbolics/PxO3a/src/num.jl:79

Possible fix, define
  substitute(::Array{Num}, ::Vector)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant