:orphan: # MatGetNearNullSpace Get null space attached with `MatSetNearNullSpace()` ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatGetNearNullSpace(Mat mat, MatNullSpace *nullsp) ``` Not Collective ## Input Parameter - ***mat -*** the matrix ## Output Parameter - ***nullsp -*** the null space object, `NULL` if not set ## See Also [](ch_matrices), `Mat`, `MatNullSpace`, `MatSetNearNullSpace()`, `MatGetNullSpace()`, `MatNullSpaceCreate()` ## Level advanced ## Location src/mat/interface/matrix.c ## Examples src/ksp/ksp/tutorials/ex49.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)