function f = f_inf_norm(Y)
% f_inf_norm  Compute the infinity norm (max absolute value) of an array
%
%   Input:
%       Y - Input array (tensor, matrix, or vector)
%
%   Output:
%       f - Infinity norm, defined as max(abs(Y(:)))
%           i.e., the largest absolute element in the array

f = max(abs(Y(:)));
end
