MatGetColoring

Gets a coloring for a matrix to reduce fill or to improve numerical stability of LU factorization.

Synopsis

int MatGetColoring(Mat mat,MatColoringType type,ISColoring *iscoloring)

Input Parameters

mat -the matrix
type -type of coloring, one of the following:
     COLORING_NATURAL - natural
     COLORING_SL - smallest-last
     COLORING_LF - largest-first
     COLORING_ID - incidence-degree

Output Parameters

iscoloring -the coloring

Collective on Mat

Options Database Keys

To specify the coloring through the options database, use one ofthe following
   -mat_coloring natural, -mat_coloring sl, -mat_coloring lf,
   -mat_coloring id
To see the coloring use
   -mat_coloring_view

The user can define additional colorings; see MatColoringRegister().

Keywords

matrix, get, coloring

See Also

MatGetColoringTypeFromOptions(), MatColoringRegister()

Examples

src/snes/examples/tutorials/ex4.c

Location: src/mat/impls/color/color.c
Matrix Index
Table of Contents