petsc-3.8.4 2018-03-24
Report Typos and Errors

TaoComputeGradient

Computes the gradient of the objective function

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoComputeGradient(Tao tao, Vec X, Vec G)
Collective on Tao

Input Parameters

tao - the Tao context
X - input vector

Output Parameter

G -gradient vector

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

See Also

TaoComputeObjective(), TaoComputeObjectiveAndGradient(), TaoSetGradientRoutine()

Level:advanced
Location:
src/tao/interface/taosolver_fg.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages