Skip to content

Commit eeb6448

Browse files
author
Matthias Koeppe
committed
Merge #34167
2 parents c738bb0 + ecd5e1a commit eeb6448

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

src/sage/geometry/polyhedron/constructor.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
3030
where
3131
32-
* **vertices** `v_1`, `\dots`, `v_k` are a finite number of
32+
* **vertices** `v_1,\dots,v_k` are a finite number of
3333
points. Each vertex is specified by an arbitrary vector, and two
3434
points are equal if and only if the vector is the same.
3535
36-
* **rays** `r_1`, `\dots`, `r_m` are a finite number of directions
36+
* **rays** `r_1,\dots,r_m` are a finite number of directions
3737
(directions of infinity). Each ray is specified by a non-zero
3838
vector, and two rays are equal if and only if the vectors are
3939
the same up to rescaling with a positive constant.
4040
41-
* **lines** `\ell_1`, `\dots`, `\ell_n` are a finite number of
41+
* **lines** `\ell_1,\dots,\ell_n` are a finite number of
4242
unoriented directions. In other words, a line is equivalent to
4343
the set `\{r, -r\}` for a ray `r`. Each line is specified by a
4444
non-zero vector, and two lines are equivalent if and only if the
@@ -159,11 +159,10 @@
159159
160160
The base ring of the polyhedron can be specified by the ``base_ring``
161161
optional keyword argument. If not specified, a suitable common base
162-
ring for all coordinates/coefficients will be chosen
162+
ring for all coordinates and coefficients will be chosen
163163
automatically. Important cases are:
164164
165-
* ``base_ring=QQ`` uses a fast implementation for exact rational
166-
numbers.
165+
* ``base_ring=QQ`` uses a fast implementation for exact rational numbers.
167166
168167
* ``base_ring=ZZ`` is similar to ``QQ``, but the resulting polyhedron
169168
object will have extra methods for lattice polyhedra.
@@ -174,8 +173,8 @@
174173
Polyhedra with symmetries often are defined over some algebraic field
175174
extension of the rationals. As a simple example, consider the
176175
equilateral triangle whose vertex coordinates involve `\sqrt{3}`. An
177-
exact way to work with roots in Sage is the :mod:`Algebraic Real Field
178-
<sage.rings.qqbar>` ::
176+
exact way to work with roots in Sage is the
177+
:mod:`Algebraic Real Field <sage.rings.qqbar>` ::
179178
180179
sage: triangle = Polyhedron([(0,0), (1,0), (1/2, sqrt(3)/2)], base_ring=AA) # optional - sage.rings.number_field # optional - sage.symbolic
181180
sage: triangle.Hrepresentation() # optional - sage.rings.number_field # optional - sage.symbolic

src/sage/matroids/graphic_matroid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@ def _repr_(self):
317317

318318
def _vertex_stars(self):
319319
"""
320-
Computes the set of edge labels around each vertex.
320+
Compute the set of edge labels around each vertex.
321321
322322
Internal method for hashing purposes.
323323
324324
OUTPUT:
325325
326-
A ``frozenset`` of ``frozenset``s containing the edge labels around
326+
A ``frozenset`` of ``frozenset`` s containing the edge labels around
327327
each vertex.
328328
329329
EXAMPLES::
@@ -345,7 +345,7 @@ def _vertex_stars(self):
345345
"""
346346
star_list = []
347347
for v in self._G.vertices():
348-
star = [l for (u, v, l) in self._G.edges_incident(v)]
348+
star = [l for (_, _, l) in self._G.edges_incident(v)]
349349
star_list.append(frozenset(star))
350350
return frozenset(star_list)
351351

src/sage/modules/free_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def FreeModule(base_ring, rank_or_basis_keys=None, sparse=False, inner_product_m
453453
[1 2]
454454
[3 4]
455455
456-
.. todo::
456+
.. TODO::
457457
458458
Refactor modules such that it only counts what category the base
459459
ring belongs to, but not what is its Python class.

src/sage/modules/tensor_operations.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class TensorOperation(VectorCollection):
248248
- ``operation`` -- string. The tensor operation. Currently allowed
249249
values are ``product``, ``symmetric``, and ``antisymmetric``.
250250
251-
.. todo::
251+
.. TODO::
252252
253253
More general tensor operations (specified by Young tableaux)
254254
should be implemented.
@@ -326,8 +326,7 @@ def _init_product_vectors(self, i):
326326
.. NOTE::
327327
328328
In a convenient choice of coordinates the tensor product
329-
of, say, two vectors `(a,b)` and `(c,d)`, is `(ac, ad, bc,
330-
bd)$.
329+
of, say, two vectors `(a,b)` and `(c,d)`, is `(ac, ad, bc, bd)`.
331330
332331
EXAMPLES::
333332

src/sage/modules/tutorial_free_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
r"""
22
Tutorial: Using free modules and vector spaces
33
4-
.. MODULEAUTHOR:: Jason Bandlow
4+
AUTHOR: Jason Bandlow
55
66
In this tutorial, we show how to construct and manipulate free modules
77
and vector spaces and their elements.

src/sage_docbuild/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def sphinx_plot(graphics, **kwds):
176176

177177
# If true, sectionauthor and moduleauthor directives will be shown in the
178178
# output. They are ignored by default.
179-
#show_authors = False
179+
show_authors = True
180180

181181
# Default lexer to use when highlighting code blocks, using the IPython
182182
# console lexers. 'ipycon' is the IPython console, which is what we want

src/tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ rst-roles =
207207
wikipedia
208208
rst-directives =
209209
automethod,
210+
autofunction,
210211
toctree,
212+
MODULEAUTHOR,
211213
ONLY,
212214
PLOT,
213215
SEEALSO,

0 commit comments

Comments
 (0)