PETSc version 3.17.4
Fix/Edit manual page

# MatStructure

Indicates if two matrices have the same nonzero structure

### Synopsis

    typedef enum {DIFFERENT_NONZERO_PATTERN,SUBSET_NONZERO_PATTERN,SAME_NONZERO_PATTERN,UNKNOWN_NONZERO_PATTERN} MatStructure;

     SAME_NONZERO_PATTERN  - the two matrices have identical nonzero patterns

     DIFFERENT_NONZERO_PATTERN - the two matrices may have different nonzero patterns

     SUBSET_NONZERO_PATTERN - the nonzero pattern of the second matrix is a subset of the nonzero pattern of the first matrix

     UNKNOWN_NONZERO_PATTERN - there is no known relationship between the nonzero patterns. In this case the implementations may try to detect a relationship to optimize the operation

### Developer Notes

Any additions/changes here MUST also be made in src/mat/f90-mod/petscmat.h

### See Also

MatCopy(), MatAXPY(), MatAYPX()

### Level

beginner

### Location

src/mat/../../include/petscmat.h

### Examples

src/mat/tutorials/ex9.c.html
src/ksp/ksp/tutorials/ex9.c.html
src/ksp/ksp/tutorials/ex21.c.html
src/ksp/ksp/tutorials/ex29.c.html
src/ksp/ksp/tutorials/ex34.c.html
src/ksp/ksp/tutorials/ex76.c.html
src/ksp/ksp/tutorials/ex77.c.html
src/ksp/ksp/tutorials/ex79.c.html
src/ksp/ksp/tutorials/ex77f.F90.html
src/ts/tutorials/ex3.c.html
src/ts/tutorials/ex50.c.html
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages