TaoTermSetCreateHessianMode#
Determine the behavior of TaoTermCreateHessianMatricesDefault().
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoTermSetCreateHessianMode(TaoTerm term, PetscBool Hpre_is_H, MatType H_mattype, MatType Hpre_mattype)
Logically collective
Input Parameters#
term - a
TaoTermHpre_is_H - should
TaoTermCreateHessianMatricesDefault()make one matrix forHandHpre?H_mattype - the
MatTypeto create forHHpre_mattype - the
MatTypeto create forHpre
Options Database Keys#
-tao_term_hessian_pre_is_hessian (true|false) - Whether
TaoTermCreateHessianMatrices()should use the Hessian to construct the preconditioner-tao_term_hessian_mat_type type -
MatTypefor Hessian matrix created byTaoTermCreateHessianMatrices()-tao_term_hessian_pre_mat_type type -
MatTypefor matrix from which a preconditioner can be created byTaoTermCreateHessianMatrices()
See Also#
TaoTerm: composable objective function terms,
TaoTerm,
TaoTermComputeHessian(),
TaoTermCreateHessianMatrices(),
TaoTermCreateHessianMatricesDefault(),
TaoTermGetCreateHessianMode()
Level#
developer
Location#
Examples#
src/tao/unconstrained/tutorials/rosenbrock1_taoterm.c
src/tao/tests/taotermtest2.c
Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages