TaoSetResidualRoutine#
Sets the residual evaluation routine for least-square applications
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoSetResidualRoutine(Tao tao, Vec res, PetscErrorCode (*func)(Tao, Vec, Vec, void *), void *ctx)
Logically collective
Input Parameters#
tao - the Tao context
func - the residual evaluation routine
ctx - [optional] user-defined context for private data for the function evaluation routine (may be NULL)
Calling sequence of func#
x - input vector
f - function value vector
ctx - [optional] user-defined function context
See Also#
Level#
beginner
Location#
Examples#
src/tao/leastsquares/tutorials/chwirut1.c.html
src/tao/leastsquares/tutorials/chwirut1f.F90.html
src/tao/leastsquares/tutorials/chwirut2.c.html
src/tao/leastsquares/tutorials/chwirut2f.F90.html
src/tao/leastsquares/tutorials/cs1.c.html
src/tao/leastsquares/tutorials/tomography.c.html
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages