What should be the sign of the diagonal elements of the Hessian matrix?

791 Views Asked by At

I am doing an optimization using Newton-Raphson, when I am setting the initial values of the parameter vector that makes the Hessian matrix is negative semi-definite as necessary condition for maximal point, i got a Hessian matrix with negative diagonal elements. The sign of those elements should be positive??