We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 961e25a + da923ca commit 6143897Copy full SHA for 6143897
src/systems/nonlinear/homotopy_continuation.jl
@@ -348,7 +348,8 @@ function PolynomialTransformation(sys::NonlinearSystem)
348
# Is there a better way to check for uniqueness? `simplify` is relatively slow
349
# (maybe use the threaded version?) and `expand` can blow up expression size.
350
# Could metatheory help?
351
- all_non_poly_terms = mapreduce(d -> d.non_polynomial_terms, vcat, polydata)
+ all_non_poly_terms = mapreduce(
352
+ d -> d.non_polynomial_terms, vcat, polydata; init = BasicSymbolic[])
353
unique!(all_non_poly_terms)
354
355
# each variable can only be replaced by one non-polynomial expression involving
0 commit comments