Package young :: Module matrixball :: Class Numbering
[show private | hide private]
[frames | no frames]

Type Numbering

object --+
         |
        Numbering


this class stores numbered balls.
Method Summary
  __init__(self, matrix)
  __repr__(self)
  __str__(self)
  constructP(self)
P is a sequence which lists the left-most columns where each number occurs in a matrix with numbered balls.
  constructQ(self)
Q is a sequence which lists the top-most rows where each number occurs in a matrix with numbered balls.
  contain(self, num, matrix)
Tests if a given number appears in a given matrix.
  get_derived_matrix(self)
Create a derived matrix from an original one.
  has_same_label(self)
Test if there are any balls in a box with the same label.
  numbering(self)
Put numbered balls into the matrix from NorthWest to SouthEast.
  set_duplicate(self)
If there are any duplicated balls, mark them as `duplicated'.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Method Details

constructP(self)

P is a sequence which lists the left-most columns where each number occurs in a matrix with numbered balls.

constructQ(self)

Q is a sequence which lists the top-most rows where each number occurs in a matrix with numbered balls.

contain(self, num, matrix)

Tests if a given number appears in a given matrix. Tests if a given matrix contains a given number.

get_derived_matrix(self)

Create a derived matrix from an original one. This matrix can be used to create a new instance of Numbering class.

has_same_label(self)

Test if there are any balls in a box with the same label.

numbering(self)

Put numbered balls into the matrix from NorthWest to SouthEast.

set_duplicate(self)

If there are any duplicated balls, mark them as `duplicated'.

Generated by Epydoc 2.1 on Wed Dec 08 22:20:20 2004 http://epydoc.sf.net