tao-2.1-p0 2012-07-24

TaoComputeHessian

Computes the Hessian matrix that has been set with TaoSetHessianRoutine().

Synopsis

#include "taosolver.h" 
PetscErrorCode TaoComputeHessian(TaoSolver tao, Vec X, Mat *H, Mat *Hpre, MatStructure *flg)
Collective on TaoSolver

Input Parameters

solver - the TaoSolver solver context
xx - input vector

Output Parameters

H - Hessian matrix
Hpre - Preconditioning matrix
flag - flag indicating matrix structure (SAME_NONZERO_PATTERN, DIFFERENT_NONZERO_PATTERN, or SAME_PRECONDITIONER)

Notes

Most users should not need to explicitly call this routine, as it is used internally within the minimization solvers.

TaoComputeHessian() is typically used within minimization implementations, so most users would not generally call this routine themselves.

See Also

TaoComputeObjective(), TaoComputeObjectiveAndGradient(), TaoSetHessian()

Level:developer
Location:src/interface/taosolver_hj.c
TAO Solver Index
Table of Contents