File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/sage/rings/polynomial Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ cdef class MPolynomialRing_base(sage.rings.ring.CommutativeRing):
444
444
1/2*x^3 + x*y + z^2 - 1/2*x + y + 25
445
445
446
446
.. SEEALSO::
447
-
447
+
448
448
:meth:`lagrange_polynomial<sage.rings.polynomial.polynomial_ring.PolynomialRing_field.lagrange_polynomial>`
449
449
"""
450
450
# get ring and number of variables
@@ -1387,8 +1387,9 @@ cdef class MPolynomialRing_base(sage.rings.ring.CommutativeRing):
1387
1387
sage: len( mons) == binomial( 3+ 2-1,2)
1388
1388
True
1389
1389
"""
1390
- from sage.combinat.integer_vector import IntegerVectors
1391
- return [self .monomial(* a) for a in IntegerVectors(degree, self .ngens())]
1390
+ deg_of_gens = [x.degree() for x in self .gens()]
1391
+ from sage.combinat.integer_vector_weighted import WeightedIntegerVectors
1392
+ return [self .monomial(* a) for a in WeightedIntegerVectors(degree, deg_of_gens)]
1392
1393
1393
1394
def _macaulay_resultant_getS (self , mon_deg_tuple , dlist ):
1394
1395
r """
You can’t perform that action at this time.
0 commit comments