Skip to content

Commit 02e13e9

Browse files
committed
More extensive edits
1 parent 2f48e28 commit 02e13e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+177
-219
lines changed

src/sage/algebras/fusion_rings/fusion_ring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Fusion Rings
2+
Fusion rings
33
"""
44
# ****************************************************************************
55
# Copyright (C) 2019 Daniel Bump <bump at match.stanford.edu>

src/sage/combinat/abstract_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
r"""
2-
Abstract Recursive Trees
2+
Abstract recursive trees
33
44
The purpose of this class is to help implement trees with a specific structure
55
on the children of each node. For instance, one could want to define a tree in

src/sage/combinat/all.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
r"""
22
Combinatorics
33
4-
Introductory material
5-
---------------------
4+
Introduction
5+
------------
66
77
- :ref:`sage.combinat.quickref`
88
- :ref:`sage.combinat.tutorial`
99
10-
Thematic indexes
11-
----------------
10+
Topics
11+
------
1212
1313
- :ref:`sage.combinat.counting`
1414
- :ref:`sage.combinat.enumerated_sets`
1515
- :ref:`sage.combinat.catalog_partitions`
1616
- :ref:`sage.combinat.finite_state_machine`
17+
- :ref:`sage.combinat.posets.all`
1718
- :ref:`sage.combinat.species.all`
1819
- :ref:`sage.combinat.designs.all`
19-
- :ref:`sage.combinat.posets.all`
2020
- :ref:`sage.combinat.words.all`
2121
- :ref:`sage.combinat.bijectionist`
2222
- :ref:`sage.combinat.chas.all`
@@ -26,7 +26,6 @@
2626
- :ref:`sage.combinat.sf.all`
2727
- :ref:`sage.combinat.fully_commutative_elements`
2828
29-
3029
Utilities
3130
---------
3231

src/sage/combinat/alternating_sign_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.combinat sage.modules
22
r"""
3-
Alternating Sign Matrices
3+
Alternating sign matrices
44
55
AUTHORS:
66

src/sage/combinat/binary_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Binary Trees
2+
Binary trees
33
44
This module deals with binary trees as mathematical (in particular immutable)
55
objects.

src/sage/combinat/chas/wqsym.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.combinat sage.modules
22
r"""
3-
Word Quasi-symmetric functions
3+
Word quasi-symmetric functions
44
55
AUTHORS:
66

src/sage/combinat/cluster_algebra_quiver/all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
r"""
22
Cluster algebras and quivers
33
4-
- A compendium on the cluster algebra and quiver package in Sage [MS2011]_
4+
A compendium on the cluster algebra and quiver package in Sage [MS2011]_
55
66
- :ref:`sage.combinat.cluster_algebra_quiver.quiver_mutation_type`
77
- :ref:`sage.combinat.cluster_algebra_quiver.quiver`

src/sage/combinat/combinat.py

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,65 +7,61 @@
77
88
**Numbers:**
99
10-
- Bell numbers, :func:`bell_number`
10+
- Bell numbers :func:`bell_number`
1111
12-
- Catalan numbers, :func:`catalan_number`
12+
- Catalan numbers :func:`catalan_number`
1313
14-
- Narayana numbers, :func:`narayana_number`
14+
- Narayana numbers :func:`narayana_number`
1515
16-
- Euler numbers, :func:`euler_number`
16+
- Euler numbers :func:`euler_number`
1717
18-
- Eulerian numbers, :func:`eulerian_number`
18+
- Eulerian numbers :func:`eulerian_number`
1919
20-
- Fibonacci numbers, :func:`fibonacci`
20+
- Fibonacci numbers :func:`fibonacci`
2121
22-
- Lucas numbers, :func:`lucas_number1`, :func:`lucas_number2`.
22+
- Lucas numbers :func:`lucas_number1`, :func:`lucas_number2`
2323
24-
- Stirling numbers, :func:`stirling_number1`,
25-
:func:`stirling_number2`.
24+
- Stirling numbers :func:`stirling_number1`, :func:`stirling_number2`
2625
27-
- Polygonal numbers, :func:`polygonal_number`
26+
- Polygonal numbers :func:`polygonal_number`
2827
2928
**Polynomials**
3029
31-
- Eulerian polynomial, :func:`eulerian_polynomial`
30+
- Eulerian polynomial :func:`eulerian_polynomial`
3231
33-
- Bernoulli polynomials, :func:`bernoulli_polynomial`
32+
- Bernoulli polynomials :func:`bernoulli_polynomial`
3433
3534
**Sets:**
3635
37-
- Tuples of a multiset, :func:`tuples` and :func:`number_of_tuples`. An
38-
ordered tuple of length `k` of a set `S` is a ordered selection with
39-
repetitions of `S` and is represented by a sorted list of length `k`
40-
containing elements from `S`.
36+
- Tuples of a multiset :func:`tuples`, :func:`number_of_tuples`
4137
42-
- Unordered tuples of a set, :func:`unordered_tuples` and
43-
:func:`number_of_unordered_tuples`. An unordered tuple of length `k` of a
44-
set `S` is an unordered selection with repetitions of `S` and is represented
45-
by a sorted list of length `k` containing elements from `S`.
38+
- Unordered tuples of a set :func:`unordered_tuples`, :func:`number_of_unordered_tuples`
4639
4740
**Combinatorial functions from other modules:**
4841
49-
- :func:`sage.arith.misc.binomial` binomial coefficient
42+
- Binomial coefficient :func:`sage.arith.misc.binomial`
5043
51-
- :func:`sage.arith.misc.factorial` factorial
44+
- Factorial :func:`sage.arith.misc.factorial`
5245
53-
- :func:`sage.arith.misc.falling_factorial` falling power
46+
- Falling power :func:`sage.arith.misc.falling_factorial`
5447
55-
- :func:`sage.arith.misc.rising_factorial` rising power
48+
- Rising power :func:`sage.arith.misc.rising_factorial`
5649
57-
- :func:`sage.combinat.partition.number_of_partitions` number of partitions
50+
- Number of partitions :func:`sage.combinat.partition.number_of_partitions`
5851
59-
- :func:`sage.combinat.q_analogues.gaussian_binomial` Gaussian binomial coefficient
52+
- Gaussian binomial coefficient :func:`sage.combinat.q_analogues.gaussian_binomial`
6053
6154
.. TODO::
6255
6356
Add GUAVA commands:
64-
* VandermondeMat
65-
* GrayMat returns a list of all different vectors of length n over
66-
the field F, using Gray ordering.
67-
Add (not in GAP):
68-
* Rencontres numbers (:wikipedia:`Rencontres_number`)
57+
58+
* VandermondeMat
59+
* GrayMat returns a list of all different vectors of length n over
60+
the field F, using Gray ordering.
61+
62+
Add commands not in GAP:
63+
64+
* Rencontres numbers (:wikipedia:`Rencontres_number`)
6965
7066
REFERENCES:
7167

src/sage/combinat/crystals/all.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
r"""
22
Crystals
33
4-
Introductory material
5-
---------------------
6-
74
- :ref:`sage.combinat.crystals.crystals`
85
- The `Lie Methods and Related Combinatorics <../../../../../thematic_tutorials/lie.html>`_ thematic tutorial
9-
10-
Catalogs of crystals
11-
--------------------
12-
136
- :ref:`sage.combinat.crystals.catalog`
147
15-
See also
16-
--------
17-
18-
- The categories for crystals: :class:`Crystals`, :class:`HighestWeightCrystals`,
19-
:class:`FiniteCrystals`, :class:`ClassicalCrystals`, :class:`RegularCrystals`,
20-
:class:`~sage.categories.regular_supercrystals.RegularSuperCrystals`
21-
-- The categories for crystals
22-
- :ref:`sage.combinat.root_system.all`
8+
See also the categories for crystals: :class:`Crystals`,
9+
:class:`HighestWeightCrystals`, :class:`FiniteCrystals`,
10+
:class:`ClassicalCrystals`, :class:`RegularCrystals`,
11+
:class:`~sage.categories.regular_supercrystals.RegularSuperCrystals`
2312
"""
2413
# install the docstring of this module to the containing package
2514
from sage.misc.namespace_package import install_doc

src/sage/combinat/designs/bibd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
r"""
2-
Balanced Incomplete Block Designs (BIBD)
2+
Balanced incomplete block designs (BIBD)
33
44
This module gathers everything related to Balanced Incomplete Block Designs. One can build a
55
BIBD (or check that it can be built) with :func:`balanced_incomplete_block_design`::

src/sage/combinat/designs/difference_matrices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.rings.finite_rings
22
r"""
3-
Difference Matrices
3+
Difference matrices
44
55
This module gathers code related to difference matrices. One can build those
66
objects (or know if they can be built) with :func:`difference_matrix`::

src/sage/combinat/designs/ext_rep.py

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
r"""
2-
External Representations of Block Designs
2+
External representations of block designs
33
4-
The "ext_rep" module is an API to the abstract tree represented by
4+
This module is an API to the abstract tree represented by
55
an XML document containing the External Representation of a list of
66
block designs. The module also provides the related I/O operations for
7-
reading/writing ext-rep files or data. The parsing is based on expat.
7+
reading/writing ``ext-rep`` files or data. The parsing is based on expat.
88
9-
This is a modified form of the module ext_rep.py (version 0.8)
9+
This is a modified form of the module ``ext_rep.py`` (version 0.8)
1010
written by Peter Dobcsanyi [Do2009]_ [email protected].
1111
1212
.. TODO::
@@ -15,22 +15,19 @@
1515
information about things like automorphism groups, transitivity, cycle type
1616
representatives, etc, but none of this data is made available through the
1717
current implementation.
18-
19-
Functions
20-
---------
2118
"""
2219

23-
###########################################################################
20+
# ***********************************************************************
2421
# This software is released under the terms of the GNU General Public
2522
# License, version 2 or above (your choice). For details on licensing,
2623
# see the accompanying documentation.
2724
#
2825
# This is a modified form of the module ext_rep.py (version 0.8)
2926
# written by Peter Dobcsanyi [email protected].
3027
#
31-
# Copyright 2004 by Peter Dobcsanyi [email protected], and copyright
32-
# 2009 Carlo Hamalainen [email protected]
33-
###########################################################################
28+
# Copyright 2004 Peter Dobcsanyi [email protected]
29+
# 2009 Carlo Hamalainen [email protected]
30+
# ***********************************************************************
3431

3532
import sys
3633
import xml.parsers.expat
@@ -597,7 +594,6 @@ def _encode_attribute(string):
597594
sage: _encode_attribute('E')
598595
'E'
599596
"""
600-
601597
if pattern_integer.match(string):
602598
return int(string)
603599
elif pattern_decimal.match(string):
@@ -610,8 +606,7 @@ class XTree:
610606
'''
611607
A lazy class to wrap a rooted tree representing an XML document.
612608
The tree's nodes are tuples of the structure:
613-
614-
(name, {dictionary of attributes}, [list of children])
609+
(name, {dictionary of attributes}, [list of children])
615610
616611
Methods and services of an XTree object ``t``:
617612

src/sage/combinat/designs/group_divisible_designs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.rings.finite_rings
22
r"""
3-
Group-Divisible Designs (GDD)
3+
Group-divisible designs (GDD)
44
55
This module gathers everything related to Group-Divisible Designs. The
66
constructions defined here can be accessed through ``designs.<tab>``::

src/sage/combinat/designs/latin_squares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.modules
22
r"""
3-
Mutually Orthogonal Latin Squares (MOLS)
3+
Mutually orthogonal Latin squares (MOLS)
44
55
The main function of this module is :func:`mutually_orthogonal_latin_squares`
66
and can be can be used to generate MOLS (or check that they exist)::

src/sage/combinat/designs/resolvable_bibd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.rings.finite_rings
22
r"""
3-
Resolvable Balanced Incomplete Block Design (RBIBD)
3+
Resolvable balanced incomplete block design (RBIBD)
44
55
This module contains everything related to resolvable Balanced Incomplete Block
66
Designs. The constructions implemented here can be obtained through the

src/sage/combinat/designs/steiner_quadruple_systems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
r"""
2-
Steiner Quadruple Systems
2+
Steiner quadruple systems
33
44
A Steiner Quadruple System on `n` points is a family `SQS_n \subset \binom {[n]}
55
4` of `4`-sets, such that any set `S\subset [n]` of size three is a subset of

src/sage/combinat/diagram_algebras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.combinat sage.modules
22
r"""
3-
Diagram and Partition Algebras
3+
Diagram and partition algebras
44
55
AUTHORS:
66

src/sage/combinat/enumerated_sets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Enumerated sets and combinatorial objects
2+
Enumerated sets
33
44
Basic enumerated sets
55
---------------------
@@ -13,7 +13,6 @@
1313
-------------
1414
1515
- :ref:`sage.combinat.partition`
16-
(see also: :ref:`sage.combinat.catalog_partitions`)
1716
- :ref:`sage.combinat.composition`
1817
- :class:`~sage.combinat.composition_signed.SignedCompositions`
1918
- :class:`IntegerListsLex`

src/sage/combinat/fqsym.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.combinat sage.modules
22
r"""
3-
Free Quasi-symmetric functions
3+
Free quasi-symmetric functions
44
55
AUTHORS:
66

src/sage/combinat/graph_path.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
r"""
2-
Paths in Directed Acyclic Graphs
2+
Paths in directed acyclic graphs
33
"""
4-
#*****************************************************************************
4+
# ****************************************************************************
55
# Copyright (C) 2007 Mike Hansen <[email protected]>,
66
#
77
# Distributed under the terms of the GNU General Public License (GPL)
@@ -14,7 +14,7 @@
1414
# The full text of the GPL is available at:
1515
#
1616
# http://www.gnu.org/licenses/
17-
#*****************************************************************************
17+
# ****************************************************************************
1818

1919
from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets
2020
from sage.structure.parent import Parent

src/sage/combinat/grossman_larson_algebras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.combinat sage.graphs sage.modules
22
r"""
3-
Grossman-Larson Hopf Algebras
3+
Grossman-Larson Hopf algebras
44
55
AUTHORS:
66

src/sage/combinat/matrices/latin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage.doctest: needs sage.combinat sage.groups sage.modules
22
r"""
3-
Latin Squares
3+
Latin squares
44
55
A *latin square* of order `n` is an `n \times n` array such that
66
each symbol `s \in \{ 0, 1, \dots, n-1\}` appears precisely once in each

src/sage/combinat/non_decreasing_parking_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
r"""
2-
Non-Decreasing Parking Functions
2+
Non-decreasing parking functions
33
44
A *non-decreasing parking function* of size `n` is a non-decreasing
55
function `f` from `\{1,\dots,n\}` to itself such that for all `i`, one

src/sage/combinat/ordered_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Ordered Rooted Trees
2+
Ordered rooted trees
33
44
AUTHORS:
55

0 commit comments

Comments
 (0)