Skip to content

Commit 79f8063

Browse files
committed
Combining operators only available for Real data
1 parent 902e347 commit 79f8063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SimplifyEquation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function combine_operators(
99
tree::Node{T},
1010
operators::AbstractOperatorEnum,
1111
id_map::IdDict{Node{T},Node{T}}=IdDict{Node{T},Node{T}}(),
12-
)::Node{T} where {T}
12+
)::Node{T} where {T<:Real}
1313
# NOTE: (const (+*-) const) already accounted for. Call simplify_tree before.
1414
# ((const + var) + const) => (const + var)
1515
# ((const * var) * const) => (const * var)

0 commit comments

Comments
 (0)