Function for obtaining a weighted least squares low-rank approximation of a symmetric matrix
Useful links