function D = Inf( varargin )
%DISTRIBUTED.INF Infinity distributed array
%   D = DISTRIBUTED.INF(N) is an N-by-N distributed matrix of INFs.
%   
%   D = DISTRIBUTED.INF(M,N) is an M-by-N distributed matrix of INFs.
%   
%   D = DISTRIBUTED.INF(M,N,K,...) or DISTRIBUTED.INF([M,N,K,...])
%   is an M-by-N-by-K-by-... distributed array of INFs.
%   
%   D = DISTRIBUTED.INF(M,N,K,..., CLASSNAME) or 
%   DISTRIBUTED.INF([M,N,K,...], CLASSNAME) is an M-by-N-by-K-by-... 
%   distributed array of INFs of class specified by CLASSNAME.  CLASSNAME 
%   must be either 'single' or 'double'.
%   
%   D = INF(...,'like',P) for a DISTRIBUTED argument P returns a distributed array of INFs of the 
%   same complexity as P and the requested size. If CLASSNAME is not specified then D has 
%   the same underlying class as P. P must have underlying class 'single' or 'double'.
%   
%   As shown in the example, all forms of the built-in function have been 
%   overloaded for distributed arrays.
%   
%   Example:
%   % Create a 1000-by-1 distributed array of underlying class 'single' 
%   % containing the value Inf:
%       N = 1000;
%       D1 = distributed.INF(N, 1,'single');
%       % D2 is a 1000-by-1000 distributed array with the same underlying class
%       D2 = INF(N,'like',D1); 
%       D3 = distributed.INF(1, N);
%   
%   See also INF, DISTRIBUTED, DISTRIBUTED/ZEROS, DISTRIBUTED/ONES.


%   Copyright 2008-2020 The MathWorks, Inc.

% static method of distributed

D = distributed.sBuild( @codistributed.Inf, 'Inf', varargin{:} );
end
