function r8vec_norm_l0_test ( )

%*****************************************************************************80
%
%% r8vec_norm_l0_test() tests r8vec_norm_l0().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 January 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_NORM_L0_TEST\n' );
  fprintf ( 1, '  R8VEC_NORM_L0 computes the L0 "norm" of an R8VEC.\n' );
 
  n = 10;
  a_lo = - 2.0;
  a_hi = + 2.0;
  a = a_lo + ( a_hi - a_lo ) * rand ( n, 1 );

  a = r8vec_nint ( n, a );

  r8vec_print ( n, a, '  Input vector:' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  L0 norm:         %f\n', r8vec_norm_l0 ( n, a ) );

  return
end
