:orphan: # MatInvertBlockDiagonalMat set the values of matrix C to be the inverted block diagonal of matrix A ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatInvertBlockDiagonalMat(Mat A, Mat C) ``` Collective ## Input Parameters - ***A -*** the matrix - ***C -*** matrix with inverted block diagonal of `A`. This matrix should be created and may have its type set. ## Note The blocksize of the matrix is used to determine the blocks on the diagonal of `C` ## See Also [](ch_matrices), `Mat`, `MatInvertBlockDiagonal()` ## Level advanced ## Location src/mat/interface/matrix.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matrix.c) [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)