TaoTermComputeHessianMFFD#
Update a matrix-free finite-difference MATMFFD Hessian created by TaoTermCreateHessianMFFD() to represent the Hessian of a TaoTerm at a given point and parameters.
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoTermComputeHessianMFFD(TaoTerm term, Vec x, Vec params, Mat H, Mat B)
Collective
Input Parameters#
term - the
TaoTermx - the point at which the Hessian is to be applied
params - the current parameter vector for
term, orNULL
Output Parameters#
H - the
MATMFFDHessian, reinitialized if needed and updated to base pointxB - the preconditioning matrix (unused; retained for API symmetry), or
NULL
Note#
If H has not yet been initialized for this TaoTerm, this routine initializes it via
TaoTermInitializeHessianMFFD(); passing a shell matrix from a different TaoTerm is an error.
See Also#
TaoTerm, TaoTermCreateHessianMFFD(), TaoTermComputeHessian(), MATMFFD
Level#
advanced
Location#
src/tao/term/utils/taotermfdiff.c
Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages