%TRACE Sum of diagonal elements.
%   TRACE(A)
%   
%   Example:
%    
%       A = gpuArray.rand(1e2);
%       traceA = trace(A);
%   
%   See also TRACE, GPUARRAY, GPUARRAY/RAND.


%   Copyright 2019 The MathWorks, Inc.
