@@ -761,7 +761,7 @@ cdef class LinearMatroid(BasisExchangeMatroid):
761
761
return {e: R[self ._idx[e]] for e in self .groundset()}
762
762
763
763
cpdef LeanMatrix _reduced_representation(self , B = None ):
764
- """
764
+ r """
765
765
Return a reduced representation of the matroid, i. e. a matrix `R` such
766
766
that `[I \ \ R ]` represents the matroid.
767
767
@@ -800,7 +800,7 @@ cdef class LinearMatroid(BasisExchangeMatroid):
800
800
# (field) isomorphism
801
801
802
802
cpdef bint _is_field_isomorphism(self , LinearMatroid other, morphism): # not safe if self == other
803
- """
803
+ r """
804
804
Version of :meth:`<LinearMatroid. is_field_isomorphism>` that does no
805
805
type checking.
806
806
@@ -966,7 +966,7 @@ cdef class LinearMatroid(BasisExchangeMatroid):
966
966
return self ._is_field_isomorphism(other, morphism)
967
967
968
968
cpdef is_field_isomorphism(self , other, morphism):
969
- """
969
+ r """
970
970
Test if a provided morphism induces a bijection between represented
971
971
matroids.
972
972
@@ -1322,7 +1322,7 @@ cdef class LinearMatroid(BasisExchangeMatroid):
1322
1322
return type (self )(reduced_matrix = M, groundset = rows + cols)
1323
1323
1324
1324
cpdef dual(self ):
1325
- """
1325
+ r """
1326
1326
Return the dual of the matroid.
1327
1327
1328
1328
Let `M` be a matroid with ground set `E`. If `B` is the set of bases
@@ -1354,7 +1354,7 @@ cdef class LinearMatroid(BasisExchangeMatroid):
1354
1354
return type (self )(reduced_matrix = R, groundset = cols + rows)
1355
1355
1356
1356
cpdef has_line_minor(self , k, hyperlines = None , certificate = False ):
1357
- """
1357
+ r """
1358
1358
Test if the matroid has a `U_{2, k}`-minor.
1359
1359
1360
1360
The matroid `U_{2, k}` is a matroid on `k` elements in which every
@@ -3130,7 +3130,7 @@ cdef class BinaryMatroid(LinearMatroid):
3130
3130
self ._one = GF2_one
3131
3131
3132
3132
cpdef base_ring(self ):
3133
- """
3133
+ r """
3134
3134
Return the base ring of the matrix representing the matroid,
3135
3135
in this case `\G F{2} `.
3136
3136
@@ -3308,7 +3308,7 @@ cdef class BinaryMatroid(LinearMatroid):
3308
3308
return self ._A.copy() # Deprecated Sage matrix operation
3309
3309
3310
3310
cpdef LeanMatrix _reduced_representation(self , B = None ):
3311
- """
3311
+ r """
3312
3312
Return a reduced representation of the matroid, i. e. a matrix `R` such
3313
3313
that `[I \ \ R ]` represents the matroid.
3314
3314
@@ -4197,7 +4197,7 @@ cdef class TernaryMatroid(LinearMatroid):
4197
4197
self ._two = GF3_minus_one
4198
4198
4199
4199
cpdef base_ring(self ):
4200
- """
4200
+ r """
4201
4201
Return the base ring of the matrix representing the matroid, in this
4202
4202
case `\G F{3} `.
4203
4203
@@ -4381,7 +4381,7 @@ cdef class TernaryMatroid(LinearMatroid):
4381
4381
return self ._A.copy() # Deprecated Sage matrix operation
4382
4382
4383
4383
cpdef LeanMatrix _reduced_representation(self , B = None ):
4384
- """
4384
+ r """
4385
4385
Return a reduced representation of the matroid, i. e. a matrix `R`
4386
4386
such that `[I \ \ R ]` represents the matroid.
4387
4387
@@ -4563,7 +4563,7 @@ cdef class TernaryMatroid(LinearMatroid):
4563
4563
return self ._t_invariant
4564
4564
4565
4565
cpdef bicycle_dimension(self ):
4566
- """
4566
+ r """
4567
4567
Return the bicycle dimension of the ternary matroid.
4568
4568
4569
4569
The bicycle dimension of a linear subspace `V` is
@@ -5096,7 +5096,7 @@ cdef class QuaternaryMatroid(LinearMatroid):
5096
5096
self ._x_one = (< QuaternaryMatrix> self ._A)._x_one
5097
5097
5098
5098
cpdef base_ring(self ):
5099
- """
5099
+ r """
5100
5100
Return the base ring of the matrix representing the matroid, in this
5101
5101
case `\G F{4} `.
5102
5102
@@ -5273,7 +5273,7 @@ cdef class QuaternaryMatroid(LinearMatroid):
5273
5273
return self ._A.copy() # Deprecated Sage matrix operation
5274
5274
5275
5275
cpdef LeanMatrix _reduced_representation(self , B = None ):
5276
- """
5276
+ r """
5277
5277
Return a reduced representation of the matroid, i. e. a matrix `R` such
5278
5278
that `[I \ \ R ]` represents the matroid.
5279
5279
@@ -5413,7 +5413,7 @@ cdef class QuaternaryMatroid(LinearMatroid):
5413
5413
return self ._q_invariant
5414
5414
5415
5415
cpdef bicycle_dimension(self ):
5416
- """
5416
+ r """
5417
5417
Return the bicycle dimension of the quaternary matroid.
5418
5418
5419
5419
The bicycle dimension of a linear subspace `V` is
@@ -5810,7 +5810,7 @@ cdef class RegularMatroid(LinearMatroid):
5810
5810
return P
5811
5811
5812
5812
cpdef base_ring(self ):
5813
- """
5813
+ r """
5814
5814
Return the base ring of the matrix representing the matroid, in this
5815
5815
case `\Z Z`.
5816
5816
@@ -6230,7 +6230,7 @@ cdef class RegularMatroid(LinearMatroid):
6230
6230
return {e:idx[m[str (e)]] for e in self .groundset() if str (e) in m}
6231
6231
6232
6232
cpdef has_line_minor(self , k, hyperlines = None , certificate = False ):
6233
- """
6233
+ r """
6234
6234
Test if the matroid has a `U_{2, k}`-minor.
6235
6235
6236
6236
The matroid `U_{2, k}` is a matroid on `k` elements in which every
0 commit comments