MatFDColoringSetF#

Cache the current function value used by the finite-difference coloring context to avoid recomputing F(x) during a Jacobian evaluation.

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatFDColoringSetF(MatFDColoring fd, Vec F)

Logically Collective

Input Parameters#

  • fd - the MatFDColoring context

  • F - the current function value F(x), or NULL to invalidate any cached value

See Also#

Mat, MatFDColoring, MatFDColoringCreate(), MatFDColoringApply()

Level#

advanced

Location#

src/mat/matfd/fdmatrix.c


Index of all MatFD routines
Table of Contents for all manual pages
Index of all manual pages