function D = eye(varargin)
%EYE Identity codistributed matrix using codistributor
%   D = EYE(..., CODISTR) and D = EYE(..., CODISTR, ...) where CODISTR is a
%   1D codistributor, are equivalent to calling CODISTRIBUTED.EYE with the
%   same input arguments.
%
%   Example:
%     Create a 1000-by-1000 codistributed array identity matrix.
%     spmd
%         D = eye(1000, codistributor('2dbc'));
%     end
% 
%   See also EYE, CODISTRIBUTED/EYE, CODISTRIBUTOR2DBC

%   Copyright 2009-2013 The MathWorks, Inc.

[eyeFcn, inputArgs] = distributedutil.CodistParser.parseCodistributorBuildFcns(...
    'eye', @codistributed.eye, @eyeLike, varargin);

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

end % End of eye.
