function r8mat_norm_l2_test ( )

%*****************************************************************************80
%
%% R8MAT_NORM_L2_TEST tests R8MAT_NORM_L2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_NORM_L2_TEST\n' );
  fprintf ( 1, '  R8MAT_NORM_L2 computes the L2 norm of an R8MAT;\n' );

  m = 5;
  n = 4;
  x1 = -5.0;
  x2 = +5.0;
  seed = 123456789;
  [ a, seed ] = r8mat_uniform_ab ( m, n, x1, x2, seed );
  a = r8mat_nint ( m, n, a );

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

  t = r8mat_norm_l2 ( m, n, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Computed L2 norm = %g\n', t );

  return
end