TaoDefaultComputeHessianMFFD#
Computes the Hessian using finite differences with MATMFFD.
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoDefaultComputeHessianMFFD(Tao tao, Vec X, Mat H, Mat B, PetscCtx ctx)
Collective
Input Parameters#
tao - the
TaocontextX - compute Hessian at this point
ctx - ignored
Output Parameters#
H - Hessian matrix of type
MATMFFDB - should be
NULLor equal toH
Note#
This can be passed to TaoSetHessian() to use MATMFFD for approximate Hessian-vector products. The matrix H can originate from
MatCreateMFFD() or from TaoTermCreateHessianMFFD().
See Also#
Level#
advanced
Location#
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages