Skip to content

Let division by an AffExpr stay an AffExpr when it has all-0 coefficients - #4262

Closed
acostarelli wants to merge 2 commits into
jump-dev:masterfrom
acostarelli:master
Closed

acostarelli wants to merge 2 commits into
jump-dev:masterfrom
acostarelli:master

Conversation

@acostarelli

Copy link
Copy Markdown

Current behavior:

1.0 / AffExpr(1.0) --> NonlinearExpr

This branch changes so that the return is an AffExpr when the RHS has all-0 coefficients.

Tests are currently broken because now the return type from division cannot be inferred, which seems like a valid reason not to do this.

@odow

odow commented Sep 28, 2026

Copy link
Copy Markdown
Member

Closing in favor of #4263. I've added you as a co-author.

@odow odow closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants