You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type Array is expected to have some functions available like length(...) or reshape!(...), but when trying to build a symbolic tree, these functions are not available.
Here, I tried to create 2 arrays (x, and y) and add length(y) to x.
julia> using SymbolicUtils
julia> @syms x::Array y::Array
(x, y)
julia> z = x^2 .+ length(y)
ERROR: MethodError: no method matching length(::SymbolicUtils.Sym{Array})
Closest candidates are:
length(::Core.SimpleVector) at essentials.jl:596
length(::Base.MethodList) at reflection.jl:852
length(::Core.MethodTable) at reflection.jl:938
...
Stacktrace:
[1] top-level scope at REPL[5]:1
The text was updated successfully, but these errors were encountered:
The type
Array
is expected to have some functions available likelength(...)
orreshape!(...)
, but when trying to build a symbolic tree, these functions are not available.Here, I tried to create 2 arrays (
x
, andy
) and addlength(y)
tox
.The text was updated successfully, but these errors were encountered: