| 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 |