function variomino_index_test ( )

%*****************************************************************************80
%
%% variomino_index_test() tests variomino_index().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 April 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'variomino_index_test():\n' );
  fprintf ( 1, '  variomino_index() assigns an index to each nonzero entry\n' );
  fprintf ( 1, '  of a variomino.\n' );

  p = [ ...
     3,  0,  2,  3;
     2,  3,  1,  0;
     0,  2,  3,  0 ];

  variomino_print ( p, '  The variomino P:' );

  pin = variomino_index ( p );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  PIN: Index vector for P:\n' );
  fprintf ( 1, '\n' );

  [ m, n ] = size ( p );

  for i = 1 : m
    for j = 1 : n
      fprintf ( 1, ' %d', pin(i,j) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
