function r8mat_border_cut_test ( )

%*****************************************************************************80
%
%% R8MAT_BORDER_CUT_TEST tests R8MAT_BORDER_CUT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_BORDER_CUT_TEST\n' );
  fprintf ( 1, '  R8MAT_BORDER_CUT cuts the border from a matrix.\n' );
 
  m = 5;
  n = 4;

  a = r8mat_indicator ( m, n );

  r8mat_print ( m, n, a, '  Matrix A:' );

  m2 = m - 2;
  n2 = n - 2;
  a2 = r8mat_border_cut ( m, n, a );

  r8mat_print ( m2, n2, a2, '  Matrix A - border:' );

  return
end
