TaoTermShellSetCreateHessianMatrices#

Set the routine that creates Hessian matrices for a TaoTerm of type TAOTERMSHELL

Synopsis#

#include "petsctao.h" 
PetscErrorCode TaoTermShellSetCreateHessianMatrices(TaoTerm term, PetscErrorCode (*createmats)(TaoTerm f, Mat *H, Mat *Hpre))

Logically collective

Input Parameters#

Calling sequence of createmats#

  • f - the TaoTerm

  • H - (optional) a matrix of the appropriate type and size for the Hessian of term

  • Hpre - (optional) a matrix of the appropriate type and size for constructing a preconditioner for the Hessian of term

See Also#

TaoTerm: composable objective function terms, TaoTerm, TAOTERMSHELL, TaoTermShellGetContext(), TaoTermShellSetContextDestroy(), TaoTermShellSetCreateSolutionVec(), TaoTermShellSetCreateParametersVec()

Level#

intermediate

Location#

src/tao/term/impls/shell/taotermshell.c

Examples#

src/tao/unconstrained/tutorials/rosenbrock1_taoterm.c

Implementations#

TaoTermShellSetCreateHessianMatrices_Shell(TaoTerm term, PetscErrorCode (*createhessianmatrices)() in src/tao/term/impls/shell/taotermshell.c


Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages