#include "petsctao.h" PetscErrorCode TaoGetHessian(Tao tao, Mat *H, Mat *Hpre, PetscErrorCode (**func)(Tao, Vec, Mat, Mat, void*), void **ctx)Not collective
tao | - the Tao context |
H | - Matrix used for the hessian | |
Hpre | - Matrix that will be used operated on by preconditioner, can be the same as H | |
func | - Hessian evaluation routine | |
ctx | - user-defined context for private data for the Hessian evaluation routine |
func(Tao tao,Vec x,Mat H,Mat Hpre,void *ctx);
tao | - the Tao context | |
x | - input vector | |
H | - Hessian matrix | |
Hpre | - preconditioner matrix, usually the same as H | |
ctx | - [optional] user-defined Hessian context |