MatGetState#
Gets a snapshot of the state of a Mat
Synopsis#
#include "petscmat.h"
PetscErrorCode MatGetState(Mat A, MatState *state)
Not Collective
Input Parameter#
A - the matrix
Output Parameter#
state - the matrix state
Note#
The snapshot includes the matrix object id, 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(), PetscObjectGetId(), MatGetNonzeroState()
Level#
developer
Location#
Examples#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages