Index a Polyomino

**POLYOMINO_INDEX**,
a MATLAB library which
is given a matrix defining a region R or polyomino P, and determines
a correspondingly shaped matrix which contains an index for each
nonzero entry.

The indexing scheme starts at the upper left corner, and proceeds by rows.

For instance, the matrix representing P might be:

1 0 1 1 1 1 1 0 0 1 1 0in which case, the index matrix PIN would be:

1 0 2 3 4 5 6 0 0 7 8 0

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

**polyomino_index** is available in
a MATLAB version.

polyomino_index, a MATLAB library which is given a matrix defining a polyomino P, and determines a correspondingly shaped matrix which contains an index for each nonzero entry in P.

- polyomino_index.m, computes an index for each nonzero polyomino entry.
- polyomino_print.m, prints a polyomino.
- timestamp.m, prints the YMDHMS date as a timestamp.