Skip to main content
Ctrl+K
PETSc v3.26.0-2-g3c5cfaeaff0b 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
  • MatFactorType

MatFactorType#

indicates what type of factorization is requested

Synopsis#

typedef enum {
  MAT_FACTOR_NONE,
  MAT_FACTOR_LU,
  MAT_FACTOR_CHOLESKY,
  MAT_FACTOR_ILU,
  MAT_FACTOR_ICC,
  MAT_FACTOR_ILUDT,
  MAT_FACTOR_QR,
  MAT_FACTOR_NUM_TYPES
} MatFactorType;

Values#

  • MAT_FACTOR_LU - LU factorization

  • MAT_FACTOR_CHOLESKY - Cholesky factorization

  • MAT_FACTOR_ILU - ILU factorization

  • MAT_FACTOR_ICC - incomplete Cholesky factorization

  • MAT_FACTOR_ILUDT - ILU factorization with drop tolerance

  • MAT_FACTOR_QR - QR factorization

See Also#

Matrices, MatSolverType, MatGetFactor(), MatGetFactorAvailable(), MatSolverTypeRegister()

Level#

beginner

Location#

include/petscmat.h

Examples#

src/mat/tests/ex1.c
src/mat/tests/ex106.c
src/mat/tests/ex117.c
src/mat/tests/ex125.c
src/mat/tests/ex126f.F90
src/mat/tests/ex127.c
src/mat/tests/ex128.c
src/mat/tests/ex129.c
src/mat/tests/ex130.c
src/mat/tests/ex134.c


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

On this page
  • Synopsis
  • Values
  • See Also
  • Level
  • Location
  • Examples
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-28T23:19:25-0500 (v3.26.0-2-g3c5cfaeaff0b).