Repository navigation
Add LazyMatrix and LinearQuotientBasis - #93
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #93 +/- ##
=======================================
Coverage ? 93.84%
=======================================
Files ? 15
Lines ? 747
Branches ? 0
=======================================
Hits ? 701
Misses ? 46
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Move the Macaulay matrix LazyMatrix from MacaulayMatrix.jl so that it can be used by SumOfSquares to reduce modulo equality constraints without depending on MacaulayMatrix.jl. The monomial bases are now SA.SubBasis. QuotientBasis(basis, matrix) is now the quotient of the span of `basis` by the kernel of `matrix`. The coefficients are `matrix * a` where `a` are the coefficients in `basis` and the adjoint map is `transpose(matrix) * c`. It used to store a divisor and call `rem` but this is the same linear map with `matrix` the matrix of the remainders of the elements of `basis`. With the matrix, the adjoint map is explicit and the quotient can also be given by equations that do not come from a Gröbner basis, e.g., the null space of a Macaulay matrix. Sparse matrices are supported and their zeros are skipped.
The monomial type of the polynomials may not contain all the variables of the columns, e.g., with TypedPolynomials, so the shifts could not be stored.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move the Macaulay matrix LazyMatrix from MacaulayMatrix.jl so that it can be used by SumOfSquares to reduce modulo equality constraints without depending on MacaulayMatrix.jl. The monomial bases are now SA.SubBasis.
The new QuotientBasis is the quotient of the span of a basis by the kernel of the transpose of a matrix. Its coefficients are given by the transpose of the matrix multiplied by the coefficients in the basis. With orthonormal columns, this gives a well-conditioned zero basis for the equalities obtained from the null space of a Macaulay matrix.
Closes #92