function varargout = legendre(varargin)
%LEGENDRE Associated Legendre function.
%   P = LEGENDRE(N,X)
%   SP = LEGENDRE(N,X,'sch')
%   NP = LEGENDRE(N,X,'norm')
%   
%   Example:
%     
%       X = gpuArray.rand(2,4,5);
%       N = 2;
%       P = legendre(N,X);
%   
%   See also LEGENDRE, GPUARRAY.RAND, GPUARRAY.


%   Copyright 2014 The MathWorks, Inc.

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