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 TaoTerm

  • x - the point at which the Hessian is to be applied

  • params - the current parameter vector for term, or NULL

Output Parameters#

  • H - the MATMFFD Hessian, reinitialized if needed and updated to base point x

  • B - 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