POLYOMINO_INDEX
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 0
in which case, the index matrix PIN would be:
  1 0 2 3
  4 5 6 0
  0 7 8 0

Licensing:

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

Languages:

polyomino_index is available in a MATLAB version.

Related Data and Programs:

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_test

Source Code:


Last revised on 27 February 2019.