File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4163,7 +4163,7 @@ cdef class Matrix_polynomial_dense(Matrix_generic_dense):
4163
4163
"""
4164
4164
from sage.matrix.constructor import matrix # for identity
4165
4165
4166
- ring, var = self .base_ring().objgen ()
4166
+ ring = self .base_ring()
4167
4167
m = self .nrows()
4168
4168
n = self .ncols()
4169
4169
@@ -4241,6 +4241,7 @@ cdef class Matrix_polynomial_dense(Matrix_generic_dense):
4241
4241
# left_diag = matrix.diagonal([ring.monomial(d) for d in rdeg])
4242
4242
# right_diag = matrix.diagonal([ring.monomial(d) for d in cdeg])
4243
4243
# completion[len(zcols):,nonzcols] = left_diag * completion_rev(var**(-1)) * right_diag
4244
+ # where var = ring.gen()
4244
4245
for i in range (len (completion_indices)):
4245
4246
for j in range (len (nonzcols)):
4246
4247
completion[i + len (zcols), nonzcols[j]] = completion_rev[i,j].reverse(rdeg[i]+ cdeg[j])
You can’t perform that action at this time.
0 commit comments