# TaoComputeGradient

Computes the function value and its gradient

## Synopsis

    #include "tao_solver.h"
    int TaoComputeGradient(TAO_SOLVER solver,TaoVec* xx, TaoVec* gg)

Collective on TAO_SOLVER

## Input Parameters

| solver | - the TAO_SOLVER solver context
| xx | - input vector

## Output Parameter

gg -gradient vector

## Notes

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

## Keywords

TAO_SOLVER, compute, gradient

## See Also

TaoApplication::EvaluateGradient(), TaoComputeFunction()

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