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

Commit 91fe5e1

Browse files
committed
Fix doctest and docstring formatting
1 parent 0c5fe64 commit 91fe5e1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/sage/rings/polynomial/pbori/parallel.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ def to_fast_pickable(l):
3131
It is converted to a tuple consisting of
3232
- codes referring to the polynomials
3333
- list of conversions of nodes.
34-
The nodes are sorted, that
35-
n occurs before n.else_branch(), n.then_branch()
36-
Nodes are only listed, if they are not constant.
34+
The nodes are sorted, so that n occurs before n.else_branch(), n.then_branch()
35+
nodes are only listed, if they are not constant.
3736
3837
A node is converted in this way:
39-
0 -> 0
40-
1 -> 1
41-
if_then_else(v,t,e) -> (v, index of then branch +2, index of else branch +2)
42-
The shift of +2 is for the constant values implicitly contained in the list.
38+
0 -> 0
39+
1 -> 1
40+
if_then_else(v,t,e) -> (v, index of then branch +2, index of else branch +2)
41+
the shift of +2 is for the constant values implicitly contained in the list.
4342
Each code c refers to the c-2-th position in the conversion list, if c >=2, else to
4443
the corresponding Boolean constant if c in {0, 1}
4544
@@ -272,16 +271,17 @@ def groebner_basis_first_finished(I, *l):
272271
273272
OUTPUT:
274273
275-
- tries to compute groebner_basis(I, **kwd) for kwd in l
274+
- tries to compute ``groebner_basis(I, **kwd)`` for kwd in l
276275
- returns the result of the first terminated computation
277276
278277
EXAMPLES::
279278
280279
sage: from sage.rings.polynomial.pbori.PyPolyBoRi import Ring
281280
sage: r=Ring(1000)
282281
sage: ideal = [r.variable(1)*r.variable(2)+r.variable(2)+r.variable(1)]
283-
sage: #groebner_basis_first_finished(ideal, dict(heuristic=True), dict(heuristic=False))
284-
[x(1), x(2)]
282+
sage: from sage.rings.polynomial.pbori.parallel import groebner_basis_first_finished
283+
sage: groebner_basis_first_finished(ideal, dict(heuristic=True), dict(heuristic=False))
284+
[x1, x2]
285285
"""
286286
if not I:
287287
return []

0 commit comments

Comments
 (0)