Decompose a symmetric matrix as A = QΛQᵀ = Σ λᵢ qᵢqᵢᵀ — a sum of rank-1 outer products.