Approximating a symmetric matrix