#include "snes.h" int SNESComputeJacobian(SNES snes,Vec X,Mat *A,Mat *B,MatStructure *flg)Collective on SNES and Mat
snes | - the SNES context | |
x | - input vector |
A | - Jacobian matrix | |
B | - optional preconditioning matrix | |
flag | - flag indicating matrix structure |
See SLESSetOperators() for important information about setting the flag parameter.
SNESComputeJacobian() is valid only for SNES_NONLINEAR_EQUATIONS methods. An analogous routine for SNES_UNCONSTRAINED_MINIMIZATION methods is SNESComputeHessian().
Level:developer
Location:src/snes/interface/snes.c
SNES Index
Table of Contents