TaoAppDefaultComputeHessianColor
Computes the Hessian using colored finite differences.
Synopsis
#include "taoapp.h"
#include "src/tao_impl.h"
#include "src/petsctao/include/taopetsc.h"
int TaoAppDefaultComputeHessianColor(TAO_APPLICATION taoapp, Vec V, Mat *HH,Mat *BB,
MatStructure *flag,void *ctx)
Collective on TAO_APPLICATION
Input Parameters
| tao | - the TAO_APPLICATION context
|
| V | - compute Hessian at this point
|
| ctx | - the TAO_APPLICATION structure, cast to (void*)
|
Output Parameters
| H | - Hessian matrix (not altered in this routine)
|
| B | - newly computed Hessian matrix to use with preconditioner (generally the same as H)
|
| flag | - flag indicating whether the matrix sparsity structure has changed
|
Options Database Keys