function value = r8vec_is_nonpositive ( n, x )

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

  return
end
