MatStateCompareUpdate#

Compares a matrix with a state snapshot, then updates the snapshot

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatStateCompareUpdate(Mat A, MatState *state, PetscBool *same)

Not Collective, No Fortran Support

Input Parameter#

  • A - the matrix

Input/Output Parameter#

  • state - the matrix state snapshot to compare with and update

Output Parameter#

  • same - PETSC_TRUE if the matrix state matched the snapshot before it was updated, PETSC_FALSE otherwise

See Also#

Matrices, Mat, MatState, MatGetState(), MatStateCompare(), MatStateInvalidate()

Level#

developer

Location#

src/mat/interface/matrix.c


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