function value = r8mat_is_in_01 ( m, n, a )

%*****************************************************************************80
%
%% R8MAT_IS_IN_01 is true if the entries of an R8MAT are in the range [0,1].
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    06 October 2004
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, the number of rows in A.
%
%    Input, integer N, the number of columns in A.
%
%    Input, real A(M,N), the matrix.
%
%    Output, logical VALUE, is true if every entry of A is
%    between 0 and 1.
%
  if ( any ( a(1:m,1:n) < 0.0 ) )
    value = false;
  elseif ( any ( 1.0 < a(1:m,1:n) ) )
    value = false;
  else
    value = true;
  end

  return
end
