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
After defining this function, I passed a vector through it and got an error, which is that an attempt is being made to convert a Symbol type value to a number, which is impossible:
MethodError: no method matching AbstractFloat(::Type{Symbol})
Closest candidates are:
(::Type{T})(::AbstractChar) where T<:Union{AbstractChar, Number}
@ Base char.jl:50
(::Type{T})(::SymbolicUtils.Symbolic) where T<:Union{AbstractFloat, Integer, Complex{<:AbstractFloat}, Complex{<:Integer}}
@ Symbolics /usr/local/julia-1.9.3/packages/Symbolics/VIBnK/src/Symbolics.jl:146
(::Type{T})(::Base.TwicePrecision) where T<:Number
@ Base twiceprecision.jl:266
Maybe you should make sure that something else is used during code generation, for example, use one(Float64) or one(0.0).
Expected behavior
I would like the function to work without errors
Version info
FuzzyLogic v0.1.2
Related issues
Maybe you should make sure that something else is used during code generation, for example, use one(Float64) or one(0.0).
The text was updated successfully, but these errors were encountered:
Good afternoon.
Bug description
The error lies in incorrect code generation. When generating and trying to reproduce the function, which I will describe below.
Minimum (non-)working example
The result is a function:
After defining this function, I passed a vector through it and got an error, which is that an attempt is being made to convert a Symbol type value to a number, which is impossible:

Maybe you should make sure that something else is used during code generation, for example, use one(Float64) or one(0.0).
Expected behavior
I would like the function to work without errors
Version info
FuzzyLogic v0.1.2
Related issues
Maybe you should make sure that something else is used during code generation, for example, use one(Float64) or one(0.0).
The text was updated successfully, but these errors were encountered: