# 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
 `Mat`, `MatNullSpace`, `MatSetNearNullSpace()`, `MatGetNullSpace()`, `MatNullSpaceCreate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatGetNearNullSpace">src/mat/interface/matrix.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex49.c.html">src/ksp/ksp/tutorials/ex49.c.html</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
