MatGetState#
Gets the state of a Mat
. Same value as returned by PetscObjectStateGet()
Synopsis#
#include "petscmat.h"
PetscErrorCode MatGetState(Mat A, PetscObjectState *state)
Not Collective
Input Parameter#
A - the matrix
Output Parameter#
state - the object state
Note#
Object state is an integer which gets increased every time the object is changed. By saving and later querying the object state one can determine whether information about the object is still current.
See MatGetNonzeroState()
to determine if the nonzero structure of the matrix has changed.
See Also#
Matrices, Mat
, MatCreate()
, PetscObjectStateGet()
, MatGetNonzeroState()
Level#
advanced
Location#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages