From 1517da77e483caa1830dca63fb1f1dec50a4bbe8 Mon Sep 17 00:00:00 2001 From: Orjan Ameye Date: Sun, 29 Jun 2025 13:10:17 +0200 Subject: [PATCH] fix: add Complex to check floating point symbolic sym --- src/utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index e3e5e4de9f..e96f31f533 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -606,7 +606,7 @@ end """ $(TYPEDSIGNATURES) -Indicate whether the given equation type (Equation, Pair, etc) supports `collect_vars!`. +Indicate whether the given equation type (Equation, Pair, etc) supports `collect_vars!`. Can be dispatched by higher-level libraries to indicate support. """ eqtype_supports_collect_vars(eq) = false @@ -791,7 +791,7 @@ Check if `T` is an appropriate symtype for a symbolic variable representing a fl point number or array of such numbers. """ function is_floatingpoint_symtype(T::Type) - return T == Real || T == Number || T <: AbstractFloat || + return T == Real || T == Number || T == Complex || T <: AbstractFloat || T <: AbstractArray && is_floatingpoint_symtype(eltype(T)) end