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#
term - a
TaoTermof typeTAOTERMSHELLcreatemats - a function with the same signature as
TaoTermCreateHessianMatrices()
Calling sequence of createmats#
f - the
TaoTermH - (optional) a matrix of the appropriate type and size for the Hessian of
termHpre - (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#
Examples#
Implementations#
Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages