function vector_print ( a, label )

%*****************************************************************************80
%
%% vector_print prints a vector.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    16 November 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A(N), the vector to be printed.
%
%    string LABEL, a title.
%
  n = length ( a );

  if ( 0 < length ( label ) )
    fprintf ( 1, '\n' );
    fprintf ( 1, '%s\n', label );
  end
  fprintf ( 1, '\n' );

  for i = 1 : n
    fprintf ( 1, '%6d: %12g\n', i, a(i) );
  end

  return
end
