function value = r8vec_is_nonnegative ( n, x )

%*****************************************************************************80
%
%% R8VEC_IS_NONNEGATIVE is true if all R8VEC entries are nonnegative.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 April 2018
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the dimension of the vectors.
%
%    Input, real X(N), the vector to be compared against.
%
%    Output, logical R8VEC_IS_NONNEGATIVE, is true (1) if X only contains
%    nonnegative entries.
%
  value = all ( 0.0 <= x(1:n) );

  return
end
