Skip to main content
Ctrl+K
PETSc v3.25.5-747-gd7439c07f00d documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • MatState

MatState#

Snapshot of the state of a Mat

Synopsis#

typedef struct {
  PetscObjectId    id;
  PetscObjectState state;
  PetscObjectState nonzerostate;
} MatState;

Note#

A MatState records the object id, state, and nonzero state of a Mat.

See Also#

Matrices, Mat, MatGetState(), MatStateCompare(), MatStateCompareUpdate(), MatStateInvalidate(), PetscObjectGetId()

Level#

developer

Location#

include/petscmat.h


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

On this page
  • Synopsis
  • Note
  • See Also
  • Level
  • Location
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-09-08T04:01:12-0500 (v3.25.5-747-gd7439c07f00d).