#include "petsctao.h" PetscErrorCode TaoSetJacobianStateRoutine(Tao tao, Mat J, Mat Jpre, Mat Jinv, PetscErrorCode (*func)(Tao, Vec, Mat, Mat, Mat,void*), void *ctx)Logically collective on Tao Many br
tao | - the Tao context Many br | |
J | - Matrix used for the jacobian Many br | |
Jpre | - Matrix that will be used operated on by PETSc preconditioner, can be same as J. Only used if Jinv is NULL Many br | |
Jinv | - [optional] Matrix used to apply the inverse of the state jacobian. Use NULL to default to PETSc KSP solvers to apply the inverse. Many br | |
jac | - Jacobian evaluation routine Many br | |
ctx | - [optional] user-defined context for private data for the Many brJacobian evaluation routine (may be NULL) Many br |
jac (Tao tao,Vec x,Mat *J,Mat *Jpre,void *ctx);
tao | - the Tao context Many br | |
x | - input vector Many br | |
J | - Jacobian matrix Many br | |
Jpre | - preconditioner matrix, usually the same as J Many br | |
Jinv | - inverse of J Many br | |
ctx | - [optional] user-defined Jacobian context Many br |
Many br
Level:intermediate
Location:src/tao/interface/taosolver_hj.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages