Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assume unknown functions are non-linear in hessian_sparsity #1384

Merged
merged 5 commits into from
Dec 13, 2024

Conversation

devmotion
Copy link
Contributor

@devmotion devmotion commented Dec 12, 2024

I've run into issues similar to #749, #643, #555 etc. with isaffine/islinear/hessian_sparsity repeatedly.

In this PR I propose to assume that functions with unknown linearity are non-linear. This seems to be a safe default that does not report any incorrect structural zeros but would at most error on the other side (missing structural zeros).

Fixes #555.
Fixes #847.
Fixes #790.
Fixes #749.

@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.68%. Comparing base (6202fa4) to head (3185d30).
Report is 6 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1384       +/-   ##
===========================================
+ Coverage    3.95%   79.68%   +75.72%     
===========================================
  Files          51       51               
  Lines        4824     4908       +84     
===========================================
+ Hits          191     3911     +3720     
+ Misses       4633      997     -3636     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ChrisRackauckas ChrisRackauckas merged commit 74756eb into JuliaSymbolics:master Dec 13, 2024
10 of 12 checks passed
@devmotion devmotion deleted the dw/hessian_sparsity branch December 13, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants