function z = not(z)
%~   Logical NOT.
%   B = ~A
%   B = NOT(A)
%   
%   See also NOT, DLARRAY.

%   Copyright 2019-2020 The MathWorks, Inc.

% If this file is modified to not be a standard unary element-wise
% function, please also remove the following template tags.
%#define $UnaryFunction ~$zdata
%#template $UnaryElementWiseTemplate
% Template inserted by deep.dev.generateDlarrayMethods, 2020-02-26 14:14 

% Extract data to work on and create a template output object.
[z, fdz, zdata] = extractUnaryElwiseData(z);

zdata = ~matlab.lang.internal.move(zdata);

z = restoreUnaryElwiseData(z, ...
    matlab.lang.internal.move(fdz), ...
    matlab.lang.internal.move(zdata));

%#template
end
