function D = inf(varargin)
%INF Infinity codistributed array using codistributor
%   D = INF(..., CODISTR) and D = INF(..., CODISTR, ...) where CODISTR is a 1D
%   codistributor, are equivalent to calling CODISTRIBUTED.INF with the same
%   input arguments.
%
%   Example:
%     Create a 1000-by-1000 codistributed array of INFs:
%     spmd
%         D = inf(1000, codistributor('1d'));
%     end
% 
%   See also INF, CODISTRIBUTED/INF, CODISTRIBUTOR1D

%   Copyright 2006-2013 The MathWorks, Inc.

[infFcn, inputArgs] = distributedutil.CodistParser.parseCodistributorBuildFcns(...
    'inf', @codistributed.inf, @infLike, varargin);

try
    D = infFcn(inputArgs{:});
catch E
    throw(E);
end

end % End of inf.
