function Y = uminus(X)
%- Unary minus for codistributed arrays
%   B = -A
%   B = UMINUS(A)
%   
%   Example:
%   spmd
%       N = 1000;
%       D1 = codistributed.eye(N);
%       D2 = -D1
%   end
%   
%   See also UMINUS, CODISTRIBUTED, CODISTRIBUTED/EYE.


%   Copyright 2006-2020 The MathWorks, Inc.

Y = codistributed.pElementwiseUnaryOp(@uminus, X);
