MatGetState#

Gets a snapshot of the state of a Mat

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatGetState(Mat A, MatState *state)

Not Collective, No Fortran Support

Input Parameter#

  • A - the matrix

Output Parameter#

  • state - the matrix state

Notes#

The snapshot includes the matrix identity, object state, and nonzero state. Use MatStateCompare() to determine whether two snapshots are the same, or MatStateCompareUpdate() to compare and update a saved snapshot.

See Also#

Matrices, Mat, MatState, MatStateCompare(), MatStateCompareUpdate(), MatStateInvalidate(), PetscObjectStateGet(), MatGetNonzeroState()

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