Skip to content

Commit 561f669

Browse files
committed
More edits
1 parent 156914a commit 561f669

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/sage/modules/free_quadratic_module.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,10 @@ def discriminant(self):
420420
421421
TESTS::
422422
423-
sage: M = FreeQuadraticModule(ZZ,2,matrix.identity(2))
423+
sage: M = FreeQuadraticModule(ZZ, 2, matrix.identity(2))
424424
sage: M.discriminant()
425425
-1
426-
sage: M = FreeQuadraticModule(QQ,3,matrix.identity(3))
426+
sage: M = FreeQuadraticModule(QQ, 3, matrix.identity(3))
427427
sage: M.discriminant()
428428
-1
429429
"""
@@ -602,13 +602,13 @@ def __init__(self, base_ring, rank, degree, inner_product_matrix, sparse=False):
602602

603603
def span(self, gens, check=True, already_echelonized=False):
604604
"""
605-
Return the R-span of the given list of gens, where R
605+
Return the `R`-span of the given list of gens, where `R`
606606
is the base ring of ``self``.
607607
608-
Note that this span need not be a submodule of self, nor even
608+
Note that this span need not be a submodule of ``self``, nor even
609609
of the ambient space. It must, however, be contained in the
610610
ambient vector space, i.e., the ambient space tensored with
611-
the fraction field of R.
611+
the fraction field of `R`.
612612
613613
EXAMPLES::
614614
@@ -629,13 +629,13 @@ def span(self, gens, check=True, already_echelonized=False):
629629

630630
def span_of_basis(self, basis, check=True, already_echelonized=False):
631631
r"""
632-
Return the free R-module with the given basis, where R
632+
Return the free `R`-module with the given basis, where `R`
633633
is the base ring of ``self``.
634634
635-
Note that this R-module need not be a submodule of ``self``, nor
635+
Note that this `R`-module need not be a submodule of ``self``, nor
636636
even of the ambient space. It must, however, be contained in
637637
the ambient vector space, i.e., the ambient space tensored
638-
with the fraction field of R.
638+
with the fraction field of `R`.
639639
640640
EXAMPLES::
641641
@@ -721,7 +721,7 @@ def __init__(self, base_field, dimension, degree, inner_product_matrix, sparse=F
721721

722722
def span(self, gens, check=True, already_echelonized=False):
723723
"""
724-
Return the K-span of the given list of gens, where K is the
724+
Return the `K`-span of the given list of gens, where `K` is the
725725
base field of ``self``.
726726
727727
Note that this span is a subspace of the ambient vector space,
@@ -761,7 +761,7 @@ def span(self, gens, check=True, already_echelonized=False):
761761

762762
def span_of_basis(self, basis, check=True, already_echelonized=False):
763763
r"""
764-
Return the free K-module with the given basis, where K
764+
Return the free `K`-module with the given basis, where `K`
765765
is the base field of ``self``.
766766
767767
Note that this span is a subspace of the ambient vector space,
@@ -924,7 +924,8 @@ def _sparse_module(self):
924924
True
925925
"""
926926
return FreeQuadraticModule(base_ring=self.base_ring(), rank=self.rank(),
927-
inner_product_matrix=self.inner_product_matrix(), sparse=True)
927+
inner_product_matrix=self.inner_product_matrix(),
928+
sparse=True)
928929

929930

930931
# #############################################################################
@@ -1265,7 +1266,7 @@ def __init__(self, ambient, basis, inner_product_matrix,
12651266
12661267
We test that :trac:`23703` is fixed::
12671268
1268-
sage: A = FreeQuadraticModule(ZZ,1,matrix.identity(1))
1269+
sage: A = FreeQuadraticModule(ZZ, 1, matrix.identity(1))
12691270
sage: B = A.span([[1/2]])
12701271
sage: C = B.span([[1]])
12711272
sage: B.intersection(C) == C.intersection(B)
@@ -1336,9 +1337,9 @@ def _latex_(self):
13361337

13371338
def change_ring(self, R):
13381339
"""
1339-
Return the free module over R obtained by coercing each
1340-
element of ``self`` into a vector over the fraction field of R,
1341-
then taking the resulting R-module.
1340+
Return the free module over `R` obtained by coercing each
1341+
element of ``self`` into a vector over the fraction field of `R`,
1342+
then taking the resulting `R`-module.
13421343
13431344
This raises a ``TypeError`` if coercion is not possible.
13441345
@@ -1598,7 +1599,8 @@ class FreeQuadraticModule_submodule_field(free_module.FreeModule_submodule_field
15981599
EXAMPLES:
15991600
16001601
Since this is an embedded vector subspace with echelonized basis,
1601-
the methods ``echelon_coordinates`` and user ``coordinates`` agree::
1602+
the methods :meth:`echelon_coordinates` and :meth:`coordinates` return the same
1603+
coordinates::
16021604
16031605
sage: V = QQ^3
16041606
sage: W = V.span([[1,2,3],[4,5,6]])

0 commit comments

Comments
 (0)