function b = circshift(a, varargin)
%CIRCSHIFT Shift positions of a codistributed array elements circularly.
%   Y = CIRCSHIFT(X,K)
%   Y = CIRCSHIFT(X,K,DIM)
%   Y = CIRCSHIFT(X,V)
%   
%   See also CIRCSHIFT, CODISTRIBUTED, CODISTRIBUTED/RAND.


%   Copyright 2011-2023 The MathWorks, Inc.

% Gather trailing arguments and call in-memory implementation.
varargin = distributedutil.CodistParser.gatherElements(varargin);
b = parallel.internal.array.callToolboxFunction(...
        "matlab/elmat/circshift", a, varargin{:});
end
