@@ -132,10 +132,9 @@ cdef class Matrix(Matrix0):
132
132
"""
133
133
cdef Py_ssize_t i, j
134
134
v = []
135
- for i from 0 <= i < self ._nrows:
136
- tmp = []
137
- for j from 0 <= j < self ._ncols:
138
- tmp.append(self .get_unsafe(i, j)._gap_init_())
135
+ for i in range (self ._nrows):
136
+ tmp = [self .get_unsafe(i, j)._gap_init_()
137
+ for j in range (self ._ncols)]
139
138
v.append(' [%s ]' % (' ,' .join(tmp)))
140
139
# It is needed to multiply with 'One(...)', because
141
140
# otherwise the result would not be a gap matrix
@@ -930,22 +929,6 @@ cdef class Matrix(Matrix0):
930
929
self .cache(' row_ambient_module' , x)
931
930
return x
932
931
933
- def _row_ambient_module (self , base_ring = None ):
934
- r """
935
- TESTS::
936
-
937
- sage: M = matrix( Zmod( 5) , 2, 3)
938
- sage: M. _row_ambient_module( )
939
- doctest:warning
940
- ...
941
- DeprecationWarning: the method _row_ambient_module is deprecated use row_ambient_module ( without underscore) instead
942
- See https://github. com/sagemath/sage/issues/32984 for details.
943
- Vector space of dimension 3 over Ring of integers modulo 5
944
- """
945
- from sage.misc.superseded import deprecation
946
- deprecation(32984 , ' the method _row_ambient_module is deprecated use row_ambient_module (without underscore) instead' )
947
- return self .row_ambient_module(base_ring)
948
-
949
932
cpdef column_ambient_module(self , base_ring = None , sparse = None ):
950
933
r """
951
934
Return the free module that contains the columns of the matrix.
@@ -987,22 +970,6 @@ cdef class Matrix(Matrix0):
987
970
self .cache(' column_ambient_module' , x)
988
971
return x
989
972
990
- def _column_ambient_module (self ):
991
- r """
992
- TESTS::
993
-
994
- sage: M = matrix( Zmod( 5) , 2, 3)
995
- sage: M. _column_ambient_module( )
996
- doctest:warning
997
- ...
998
- DeprecationWarning: the method _column_ambient_module is deprecated use column_ambient_module ( without underscore) instead
999
- See https://github. com/sagemath/sage/issues/32984 for details.
1000
- Vector space of dimension 2 over Ring of integers modulo 5
1001
- """
1002
- from sage.misc.superseded import deprecation
1003
- deprecation(32984 , ' the method _column_ambient_module is deprecated use column_ambient_module (without underscore) instead' )
1004
- return self .column_ambient_module()
1005
-
1006
973
def columns (self , copy = True ):
1007
974
r """
1008
975
Return a list of the columns of ``self``.
0 commit comments