Skip to content

Commit

Permalink
fix: minor bug fix in PolynomialTransformation
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jan 8, 2025
1 parent a976298 commit 1bbf245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/nonlinear/homotopy_continuation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function PolynomialTransformation(sys::NonlinearSystem)
# Is there a better way to check for uniqueness? `simplify` is relatively slow
# (maybe use the threaded version?) and `expand` can blow up expression size.
# Could metatheory help?
all_non_poly_terms = mapreduce(d -> d.non_polynomial_terms, vcat, polydata)
all_non_poly_terms = mapreduce(d -> d.non_polynomial_terms, vcat, polydata; init = BasicSymbolic[])
unique!(all_non_poly_terms)

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

0 comments on commit 1bbf245

Please sign in to comment.