function tf = iterIsEmptyArg(M)
% In the distributed sparse iterative solvers, a sparse matrix input may be
% either an actual distributed matrix or a function that generates a
% distributed matrix.  parallel.internal.flowthrough.iterchk produces a
% struct that describes these inputs.  This function determines whether the
% input was an empty matrix.

%   Copyright 2018 The MathWorks, Inc.

% The input was an empty matrix if M.type is 'matrix' and M.afun is empty
tf = strcmpi('matrix', M.type) && isempty(M.fun);
end
