Skip to content

Commit 6143897

Browse files
Merge pull request #3293 from AayushSabharwal/as/hc-poly-transform
fix: minor bug fix in `PolynomialTransformation`
2 parents 961e25a + da923ca commit 6143897

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/nonlinear/homotopy_continuation.jl

Lines changed: 2 additions & 1 deletion
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)