Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit d2b1b06

Browse files
committed
Add modules over domain
1 parent 6f4efb0 commit d2b1b06

6 files changed

+596
-281
lines changed

src/sage/categories/finite_dimensional_modules_with_basis.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ def echelon_form(self, elements, row_reduced=False, order=None):
345345
346346
::
347347
348-
sage: M = MatrixSpace(QQ, 3, 3)
349-
sage: A = M([[0, 0, 2], [0, 0, 0], [0, 0, 0]])
350-
sage: M.echelon_form([A, A])
348+
sage: M = MatrixSpace(QQ, 3, 3)
349+
sage: A = M([[0, 0, 2], [0, 0, 0], [0, 0, 0]])
350+
sage: M.echelon_form([A, A])
351351
[
352352
[0 0 1]
353353
[0 0 0]

src/sage/matrix/matrix2.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -5206,7 +5206,7 @@ cdef class Matrix(Matrix1):
52065206
[1 0]
52075207
[0 2]
52085208
"""
5209-
M = self.row_ambient_module(base_ring = base_ring)
5209+
M = self.row_ambient_module(base_ring=base_ring)
52105210
if (base_ring is None or base_ring == self.base_ring()) and self.fetch('in_echelon_form'):
52115211
if self.rank() != self.nrows():
52125212
rows = self.matrix_from_rows(range(self.rank())).rows()
@@ -13224,9 +13224,9 @@ cdef class Matrix(Matrix1):
1322413224
sage: P, L, U = C.LU(pivot='partial')
1322513225
sage: C == P*L*U
1322613226
True
13227-
13227+
1322813228
Check that :trac:`32736` is solved::
13229-
13229+
1323013230
sage: M = Matrix(FiniteField(11), [[2,3],[4,5]])
1323113231
sage: P, L, U = M.LU()
1323213232
sage: P.base_ring()

src/sage/matrix/matrix_mpolynomial_dense.pyx

-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ cdef class Matrix_mpolynomial_dense(Matrix_generic_dense):
160160
raise RuntimeError("BUG: matrix pivots should have been set but weren't, matrix parent = '%s'"%self.parent())
161161
return x
162162

163-
164163
def echelonize(self, algorithm='row_reduction', **kwds):
165164
"""
166165
Transform self into a matrix in echelon form over the same base ring as
@@ -559,6 +558,3 @@ cdef class Matrix_mpolynomial_dense(Matrix_generic_dense):
559558

560559
self.cache('det', d)
561560
return d
562-
563-
564-

0 commit comments

Comments
 (0)