#include "taosolver.h" PetscErrorCode TaoSetGradientRoutine(TaoSolver tao, PetscErrorCode (*func)(TaoSolver, Vec, Vec, void*),void *ctx)Logically collective on TaoSolver
tao | - the TaoSolver context | |
func | - the gradient function | |
ctx | - [optional] user-defined context for private data for the gradient evaluation routine (may be PETSC_NULL) |
func (TaoSolver tao, Vec x, Vec g, void *ctx);
x | - input vector | |
g | - gradient value (output) | |
ctx | - [optional] user-defined function context |
Level:beginner
Location:src/interface/taosolver_fg.c
TAO Solver Index
Table of Contents