function obj = transpose(obj)
%.' Transpose.
%   E = D.'
%   E = TRANSPOSE(D)
%   
%   If D has dimension labels, its first and second dimension
%   must have the same label.
%
%   Transposition is done implicitly, and only directly computed
%   if necessary for other operations.
%
%   See also TRANSPOSE, DLARRAY.

%   Copyright 2019 The MathWorks, Inc.

if ndims(obj) > 2 %#ok<ISMAT>
    error(message('MATLAB:transpose:NDArray'));
end

obj = permute(obj, [2 1]);

end
