Skip to content

Commit da923ca

Browse files
fix: minor bug fix in PolynomialTransformation
1 parent a976298 commit da923ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/nonlinear/homotopy_continuation.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ function PolynomialTransformation(sys::NonlinearSystem)
348348
# Is there a better way to check for uniqueness? `simplify` is relatively slow
349349
# (maybe use the threaded version?) and `expand` can blow up expression size.
350350
# Could metatheory help?
351-
all_non_poly_terms = mapreduce(d -> d.non_polynomial_terms, vcat, polydata)
351+
all_non_poly_terms = mapreduce(
352+
d -> d.non_polynomial_terms, vcat, polydata; init = BasicSymbolic[])
352353
unique!(all_non_poly_terms)
353354

354355
# each variable can only be replaced by one non-polynomial expression involving

0 commit comments

Comments
 (0)