function varargout = symmlq(varargin)
%SYMMLQ   Symmetric LQ Method for gpuArray.
%   X = SYMMLQ(A,B)
%   X = SYMMLQ(A,B)
%   X = SYMMLQ(A,B,TOL)
%   X = SYMMLQ(A,B,TOL,MAXIT)
%   X = SYMMLQ(A,B,TOL,MAXIT,M)
%   X = SYMMLQ(A,B,TOL,MAXIT,M1,M2)
%   X = SYMMLQ(A,B,TOL,MAXIT,M1,M2,X0)
%   [X,FLAG] = SYMMLQ(A,B,...)
%   [X,FLAG,RELRES] = SYMMLQ(A,B,...)
%   [X,FLAG,RELRES,ITER] = SYMMLQ(A,B,...)
%   [X,FLAG,RELRES,ITER,RESVEC] = SYMMLQ(A,B,...)
%      
%   Note that B must be a non-sparse column vector.
%   
%   
%   Example:
%   Using SYMMLQ to solve a large system of gpuArray data:
%    
%       n = 100; 
%       dOnes = gpuArray.ones(n, 1); 
%       dA = spdiags([-2*dOnes 4*dOnes -2*dOnes], -1:1, n, n);
%       db = full(sum(A, 2)); 
%       tol = 1e-10; 
%       maxit = 50;
%       dM = spdiags(4*dOnes, 0, n, n); 
%       
%       dX = SYMMLQ(dA, db, tol, maxit, dM);
%   
%   See also SYMMLQ, GPUARRAY, ONES, SPDIAGS, SUM.


%   Copyright 1984-2018 The MathWorks, Inc.

% Ensure that only the data inputs (args 1,2,5,6,7) are on the GPU
varargin = prepareSolverInputs(varargin, [1 1 0 0 1 1 1]);

% Call the local copy of the MATLAB code
[varargout{1:nargout}] = parallel.internal.flowthrough.symmlq(varargin{:});
