%  Scaled least squares solver for A*x = b
%
%   Input:  A -- matrix 
%           v -- right-side vector 
%           w -- (optional) weight vector 
%
%  Output:  (return) -- the least squares solution 
%
%  syntax  >> x = ScaledLeastSquares(A,b)
%          >> x = ScaledLeastSquares(A,b,w)
