-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
Implement check for Lorentzian polynomials #28252 #35021
Conversation
Implements methods for univariate and multivariate polynomials to check whether a polynomial is Lorentzian. A helper function checks whether a collection of integer lattice points is M-convex. Additionally extends the constructor for class QuadraticForm to accept as input a homogeneous polynomial of degree two.
Added literature references to the doctests, and added a new flag to the is_lorentzian_polynomial method, give_reason, which causes the method to return a tuple containing the boolean output of the function, and if this is false, a string explaining why the polynomial is not Lorentzian.
Ticket 28252 was created in July, 2019 at Sage Days 99 in Minneapolis, and was left in completed form but never got reviewed for inclusion in Sage. The branch got out of sync after a few months, so this branch rebases the work from the project on the most recent release of the develop branch. Only minor changes were needed in the merge, so the code should be ready for review again.
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
Codecov ReportBase: 88.59% // Head: 88.59% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #35021 +/- ##
===========================================
- Coverage 88.59% 88.59% -0.01%
===========================================
Files 2136 2136
Lines 396142 396159 +17
===========================================
+ Hits 350948 350960 +12
- Misses 45194 45199 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. β View full report at Codecov. |
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
Sorry, GH has random buttons and doesn't explain what they do (with no mouse hover text...). |
Fixes #28252
π Description
π Checklist
β Dependencies