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 da923ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems/nonlinear/homotopy_continuation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ 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 da923ca

Please sign in to comment.