:orphan:
# MatFactorShiftType
Type of numeric shift used for factorizations 
## Synopsis
```
typedef enum {
  MAT_SHIFT_NONE,
  MAT_SHIFT_NONZERO,
  MAT_SHIFT_POSITIVE_DEFINITE,
  MAT_SHIFT_INBLOCKS
} MatFactorShiftType;
```

## Values

- ***`MAT_SHIFT_NONE` -*** do not shift the matrix diagonal entries
- ***`MAT_SHIFT_NONZERO` -*** shift the entries to be non-zero
- ***`MAT_SHIFT_POSITIVE_DEFINITE` -*** shift the entries to force the factorization to be positive definite
- ***`MAT_SHIFT_INBLOCKS` -*** only shift the factors inside the small dense diagonal blocks of the matrix, for example with `MATBAIJ`





## See Also
 [](ch_matrices), `Mat`, `MatGetFactor()`, `PCFactorSetShiftType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscmat.h.html#MatFactorShiftType">include/petscmat.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmat.h)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
