O'Leary DP.  1980.  A generalized conjugate gradient algorithm for solving a class of quadratic programming problems. Linear Algebra and its Applications. 34:371-399.