Closed mantepse closed 7 months ago
The issue is that for the given seed the code
B.<a,b,c,d,e,f> = BooleanPolynomialRing()
from sage.rings.polynomial.pbori.pbori import *
l = [B.random_element() for _ in range(B.ngens())]
A, v = Sequence(l, B).coefficients_monomials()
creates a $6 \times 15$ matrix, but two of the random elements in l
are actually the same. This redundant element is removed by .gauss_on_polys
, which is why the associated matrix of the resulting sequence is of size $5 \times 15$; the difference between the two matrices is then one additional row of zeroes in A.echelon_form()
.
Since it's most likely the intended behavior to remove redundant polynomials, the doctest should probably include a rank check on the matrix A
.
Steps To Reproduce
This test failure is reproducible:
Expected Behavior
Test should pass
Actual Behavior
Test fails
Additional Information
No response
Environment
Checklist