MatFDColoringSetValues#

takes a matrix in compressed color format and enters the matrix into a PETSc Mat

Synopsis#

Collective

Input Parameters#

  • J - the sparse matrix

  • coloring - created with MatFDColoringCreate() and a local coloring

  • y - column major storage of matrix values with one color of values per column, the number of rows of y should match the number of local rows of J and the number of columns is the number of colors.

Notes#

The matrix in compressed color format may come from an automatic differentiation code

The code will be slightly faster if MatFDColoringSetBlockSize(coloring,PETSC_DEFAULT,nc); is called immediately after creating the coloring

See Also#

Matrices, Mat, MatFDColoringCreate(), ISColoring, ISColoringCreate(), ISColoringSetType(), IS_COLORING_LOCAL, MatFDColoringSetBlockSize()

Level#

intermediate

Location#

src/mat/impls/aij/mpi/fdmpiaij.c


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