Skip to content

Comments

[fork CI] Validate term() guards for SUv4 backport#2

Draft
MilesCranmerBot wants to merge 17 commits intorelease-v1from
backport/symbolicutils-v4-release-v1
Draft

[fork CI] Validate term() guards for SUv4 backport#2
MilesCranmerBot wants to merge 17 commits intorelease-v1from
backport/symbolicutils-v4-release-v1

Conversation

@MilesCranmerBot
Copy link
Owner

Validates the term() guard fix before upstream PR SymbolicML#161.

Restore index_functions round-trip for custom operators under SymbolicUtils v4.
Adds SymbolicUtils.term() usage to prevent SUv4 from canonicalizing
x*x to x^2 during conversion. This makes the backport behaviorally
equivalent to upstream/master.

- Import term from SymbolicUtils
- Use term(op, ...) for * and + in parse_tree_to_eqs
- Use term(*, ...) in multiply_powers to build explicit products
- Restore test to check x1*x1 stays as explicit multiplication
JET flagged "local variable  may be undefined" in src/precompile.jl when iterating over a Vector of types.\n\nUse a tuple for the type loop and initialize  so the value is always defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant