Skip to content

Commit 20d4211

Browse files
author
Matthias Koeppe
committed
More # optional
1 parent da79fa4 commit 20d4211

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/sage/combinat/designs/block_design.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -214,32 +214,30 @@ def ProjectiveGeometryDesign(n, d, F, algorithm=None, point_coordinates=True, ch
214214
The set of `d`-dimensional subspaces in a `n`-dimensional projective space
215215
forms `2`-designs (or balanced incomplete block designs)::
216216
217-
sage: PG = designs.ProjectiveGeometryDesign(4, 2, GF(2))
218-
sage: PG
217+
sage: PG = designs.ProjectiveGeometryDesign(4, 2, GF(2)); PG # optional - sage.rings.finite_rings
219218
Incidence structure with 31 points and 155 blocks
220-
sage: PG.is_t_design(return_parameters=True)
219+
sage: PG.is_t_design(return_parameters=True) # optional - sage.rings.finite_rings
221220
(True, (2, 31, 7, 7))
222221
223-
sage: PG = designs.ProjectiveGeometryDesign(3, 1, GF(4))
224-
sage: PG.is_t_design(return_parameters=True)
222+
sage: PG = designs.ProjectiveGeometryDesign(3, 1, GF(4)) # optional - sage.rings.finite_rings
223+
sage: PG.is_t_design(return_parameters=True) # optional - sage.rings.finite_rings
225224
(True, (2, 85, 5, 1))
226225
227226
Check with ``F`` being a prime power::
228227
229-
sage: PG = designs.ProjectiveGeometryDesign(3, 2, 4)
230-
sage: PG
228+
sage: PG = designs.ProjectiveGeometryDesign(3, 2, 4); PG # optional - sage.rings.finite_rings
231229
Incidence structure with 85 points and 85 blocks
232230
233231
Use coordinates::
234232
235-
sage: PG = designs.ProjectiveGeometryDesign(2, 1, GF(3))
236-
sage: PG.blocks()[0]
233+
sage: PG = designs.ProjectiveGeometryDesign(2, 1, GF(3)) # optional - sage.rings.finite_rings
234+
sage: PG.blocks()[0] # optional - sage.rings.finite_rings
237235
[(1, 0, 0), (1, 0, 1), (1, 0, 2), (0, 0, 1)]
238236
239237
Use indexing by integers::
240238
241-
sage: PG = designs.ProjectiveGeometryDesign(2, 1, GF(3), point_coordinates=0)
242-
sage: PG.blocks()[0]
239+
sage: PG = designs.ProjectiveGeometryDesign(2, 1, GF(3), point_coordinates=0) # optional - sage.rings.finite_rings
240+
sage: PG.blocks()[0] # optional - sage.rings.finite_rings
243241
[0, 1, 2, 12]
244242
245243
Check that the constructor using gap also works::

0 commit comments

Comments
 (0)