Skip to content

Commit c0bbb3e

Browse files
Merge pull request #3781 from oameye/floatingpoint_symtype
fix: add Complex to check floating point sym
2 parents 9a896bc + 5ab38dc commit c0bbb3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ end
606606
"""
607607
$(TYPEDSIGNATURES)
608608
609-
Indicate whether the given equation type (Equation, Pair, etc) supports `collect_vars!`.
609+
Indicate whether the given equation type (Equation, Pair, etc) supports `collect_vars!`.
610610
Can be dispatched by higher-level libraries to indicate support.
611611
"""
612612
eqtype_supports_collect_vars(eq) = false
@@ -791,7 +791,7 @@ Check if `T` is an appropriate symtype for a symbolic variable representing a fl
791791
point number or array of such numbers.
792792
"""
793793
function is_floatingpoint_symtype(T::Type)
794-
return T == Real || T == Number || T <: AbstractFloat ||
794+
return T == Real || T == Number || T == Complex || T <: AbstractFloat ||
795795
T <: AbstractArray && is_floatingpoint_symtype(eltype(T))
796796
end
797797

0 commit comments

Comments
 (0)