Ticket #7477: trac_7477_setup_doc_load-oldish.patch

File trac_7477_setup_doc_load-oldish.patch, 3.3 KB (added by Stefan, 8 years ago)

Matroid setup, autoload, documentation

  • doc/en/reference/index.rst

    # HG changeset patch
    # User Stefan van Zwam <stefanvanzwam@gmail.com>
    # Date 1367350269 14400
    # Node ID 98358ad1c4db3da68c7c7a99c4ec3c9c0849f74d
    # Parent  f0249a4353b5478f0c970395b0848abad70465c6
    Trac 7477: setup, reference manual, automatic import modifications
    
    diff --git a/doc/en/reference/index.rst b/doc/en/reference/index.rst
    a b  
    5151
    5252* :doc:`Combinatorics <combinat/index>`
    5353* :doc:`Graph Theory <graphs/index>`
     54* :doc:`Matroid Theory <matroids/index>`
    5455
    5556Structures, Coercion, Categories
    5657--------------------------------
  • new file doc/en/reference/matroids/conf.py

    diff --git a/doc/en/reference/matroids/conf.py b/doc/en/reference/matroids/conf.py
    new file mode 120000
    - +  
     1../conf_sub.py
     2 No newline at end of file
  • new file doc/en/reference/matroids/index.rst

    diff --git a/doc/en/reference/matroids/index.rst b/doc/en/reference/matroids/index.rst
    new file mode 100644
    - +  
     1Matroid Theory
     2==============
     3
     4Basics
     5------
     6
     7.. toctree::
     8   :maxdepth: 1
     9
     10   sage/matroids/constructor
     11   sage/matroids/matroid
     12   
     13Families and individual matroids
     14--------------------------------
     15
     16.. toctree::
     17   :maxdepth: 1
     18   
     19   sage/matroids/matroids_catalog
     20   sage/matroids/catalog
     21
     22Concrete implementations
     23------------------------
     24
     25.. toctree::
     26   :maxdepth: 1
     27
     28   sage/matroids/basis_matroid
     29   sage/matroids/circuit_closures_matroid
     30   sage/matroids/linear_matroid
     31   sage/matroids/rank_matroid
     32
     33Abstract matroid classes
     34------------------------
     35
     36.. toctree::
     37   :maxdepth: 1
     38   
     39   sage/matroids/dual_matroid
     40   sage/matroids/minor_matroid
     41   sage/matroids/basis_exchange_matroid
     42
     43Low-level implementation
     44------------------------
     45
     46.. toctree::
     47   :maxdepth: 1
     48
     49   sage/matroids/bitset_tools
     50   sage/matroids/extension
     51   sage/matroids/lean_matrix
     52   sage/matroids/utilities
     53
     54.. include:: ../footer.txt
  • module_list.py

    diff --git a/module_list.py b/module_list.py
    a b  
    11061106
    11071107    ################################
    11081108    ##
     1109    ## sage.matroids
     1110    ##
     1111    ################################
     1112
     1113    Extension('sage.matroids.basis_exchange_matroid',
     1114            ['sage/matroids/basis_exchange_matroid.pyx']),
     1115
     1116    Extension('sage.matroids.basis_matroid',
     1117            ['sage/matroids/basis_matroid.pyx']),
     1118
     1119    Extension('sage.matroids.bitset_tools',
     1120            ['sage/matroids/bitset_tools.pyx']),
     1121
     1122    Extension('sage.matroids.circuit_closures_matroid',
     1123            ['sage/matroids/circuit_closures_matroid.pyx']),
     1124
     1125    Extension('sage.matroids.extension',
     1126            ['sage/matroids/extension.pyx']),
     1127
     1128    Extension('sage.matroids.lean_matrix',
     1129            ['sage/matroids/lean_matrix.pyx']),
     1130
     1131    Extension('sage.matroids.linear_matroid',
     1132            ['sage/matroids/linear_matroid.pyx']),
     1133
     1134    Extension('sage.matroids.matroid',
     1135            ['sage/matroids/matroid.pyx']),
     1136           
     1137    ################################
     1138    ##
    11091139    ## sage.media
    11101140    ##
    11111141    ################################
  • sage/all.py

    diff --git a/sage/all.py b/sage/all.py
    a b  
    159159
    160160from sage.tensor.all     import *
    161161
     162from sage.matroids.all   import *
     163
    162164from copy import copy, deepcopy
    163165
    164166# The code executed here uses a large amount of Sage components