function hess = quadhess(x) % usage: hess = quadhess(x) % description: Returns the Hessian vector for quadratic test % function of the form Q(x) = 0.5*x'*A*x - b*x % where A is symmetric, A and b are globals defined % outside this function. This is really a placeholder % for linear system solving. global quadA; global quadb; hess = quadA;