Differences between revisions 104 and 105
Revision 104 as of 2008-06-16 00:44:50
Size: 3664
Editor: DavidRoe
Comment:
Revision 105 as of 2008-06-16 03:30:21
Size: 3666
Editor: CarlWitty
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
 * qqbar
Line 38: Line 39:
 * rings/qqbar, polynomials (cwitty)  * rings/polynomial (cwitty)

To start, get a copy of Sage 2.10.1, install the latest cython spkg (available at http://sage.math.washington.edu/home/robertwb/cython/), pull from http://cython.org/coercion/hgwebdir.cgi/sage-coerce/ and build.

Import [attachment:fix-random.patch] to sage-scripts to ignore random tests.

Hint: If something doesn't work, try typing

sage: coercion_traceback()

which will give a listing of all errors caught in the coercion model.

Doctests

Done

  • Integers, Rationals
  • complex, real
  • qqbar
  • integer_mod
  • monoids/modules
  • probability
  • games
  • catalogue, dsage, media, stats, server, logic, tests, misc, numerical
  • algebras
  • libs
  • quadratic forms
  • lfunctions
  • plot
  • ext
  • functions
  • databases
  • matrix (all tests pass except for one sage/matrix/matrix_modn_dense.pyx due to groups)
  • finite fields

In progress

  • combinat (Mike)
  • rings/polynomial (cwitty)
  • misc (latex.py, functional.py, misc.py) (ncalexan)
  • coding (roed)
  • crypto (classical.py, classical_cipher.py, lfsr.py, mq/mpolynomialsystem.py) (roed)

Todo

  • schemes
  • gsl ( dft.py -- group failures )
  • graphs (graph_isom.pyx)
  • calculus (calculus.py, desolvers.py, wester.py, equations.py)
  • number fields
  • sets (set.py)
  • geometry (lattice_polytope.py)
  • interfaces (done except for doctest failures caused elsewhere)
  • rings
  • groups (permgroup_named.py, perm_group.py, perm_group_element.pyx)
  • modular (lots :-) )

  • categories (homset.py, pushout.py, category_types.py)

Files to fix (Make all parents conform to the spec)

Useful script to list all parents in a given module that still need work: [attachment:list_parents.sage]

Nothing to do

  • catalogue, dsage, databases, ext, games, media, stats, server, plot, logic, tests lfunctions, misc, numerical,gsl, quadratic_forms

Done

In progress

  • groups
  • modular

Little to do

  • categories

Lots to do

Base classes

  • structure

Coercion doctesting

Comment from William:

teragon:sage was$ sage -coverage categories/action.pyx
structure/element.pyx structure/coerce.pyx |grep SCORE
SCORE categories/action.pyx: 0% (0 of 22)
SCORE structure/element.pyx: 18% (28 of 153)
SCORE structure/coerce.pyx: 2% (1 of 39)

I tried to understand and use the coercion model code to trac down the issue with #2079 and
was amazed at how nonexistent the doctesting and documentation of
functions is there.
In order for people to write lots of coercion code all of Sage, it's critical that they can
read the coercion model code so they can track down -- for themselves -- what is going
wrong when they run into trouble.  I would put getting the coverage of the above files
(and whatever else is related to coercion) up to 100% as the first step in your coercion
model stuff.   Seriously.   And don't say it can't be doctested, since even though there are
a lot of things not easily accessible now from the interpreter, such as the coercion model

Categories to implement

days7/coercion/todo (last edited 2009-07-29 19:16:15 by robertwb)