:orphan: # MatSchurComplementComputeExplicitOperator Compute the Schur complement matrix explicitly ## Synopsis ``` #include "petscksp.h" PetscErrorCode MatSchurComplementComputeExplicitOperator(Mat A, Mat *S) ``` Collective ## Input Parameter - ***M -*** the matrix obtained with `MatCreateSchurComplement()` ## Output Parameter - ***S -*** the Schur complement matrix ## Notes This can be expensive, so it is mainly for testing Use `MatSchurComplementGetPmat()` to get a sparse approximation for the Schur complement suitable for use in building a preconditioner ## See Also [](ch_ksp), `MatCreateSchurComplement()`, `MatSchurComplementUpdate()`, `MatSchurComplementGetPmat()` ## Level advanced ## Location src/ksp/ksp/utils/schurm/schurm.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/utils/schurm/schurm.c) [Index of all KSP routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)