function varargout = roots(varargin)
%ROOTS Find polynomial roots.
%   R = ROOTS(C)
%   
%   For real roots R will be a complex vector with imaginary parts set to zero.
%   
%   Example:
%    
%       C = gpuArray([1 -6 -72 -27]);
%       R = roots(C);
%   
%   See also ROOTS, GPUARRAY, POLY, RESIDUE, FZERO.


%   Copyright 2014 The MathWorks, Inc.

% try...catch prevents error being reported by internal
try
    [varargout{1:nargout}] = parallel.internal.flowthrough.roots(varargin{:});
catch ME
    throw(ME);
end
