function value = r8mat_norm_li ( m, n, a )

%*****************************************************************************80
%
%% r8mat_norm_li() returns the matrix L-infinity norm of an R8MAT.
%
%  Discussion:
%
%    The matrix L-infinity norm is defined as:
%
%      value =  max ( 1 <= I <= M ) sum ( 1 <= J <= N ) abs ( A(I,J) ).
%
%    The matrix L-infinity norm is derived from the vector L-infinity norm,
%    and satisifies:
%
%      vec_norm_li ( A * x ) <= mat_norm_li ( A ) * vec_norm_li ( x ).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 October 2006
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of rows in A.
%
%    integer N, the number of columns in A.
%
%    real A(M,N), the matrix whose L-infinity
%    norm is desired.
%
%  Output:
%
%    real VALUE, the L-infinity norm of A.
%
  value = 0.0;

  for i = 1 : m
    row_sum = sum ( abs ( a(i,1:n) ) );
    value = max ( value, row_sum );
  end

  return
end
