# TaoAppGetHessianMat

Sets the matrix representing the Hessian and the matrix used to precondition it.

## Synopsis

    #include "tao.h"
    int TaoAppGetHessianMat(TAO_APPLICATION taoapp, Mat *H, Mat *HP )

Collective on TAO_APPLICATION

## Input Parameters

| taoapp | - the TAO_APPLICATION context
| H | - the matrix used for the Hessian
| HP | - the matrix used to precondition the Hessian matrix.

## Note

Usually H and HP are the same matrix

## See Also

TaoAppSetHessianMat()

Level:developer
Location:src/petsctao/application/petscapp/tao_app_fg.c
TAO Solver Index
Table of Contents