:orphan: # MatNullSpaceTest Tests if the claimed null space is really a null space of a matrix ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatNullSpaceTest(MatNullSpace sp, Mat mat, PetscBool *isNull) ``` Collective ## Input Parameters - ***sp -*** the null space context - ***mat -*** the matrix ## Output Parameter - ***isNull -*** `PETSC_TRUE` if the nullspace is valid for this matrix ## See Also [](ch_matrices), `Mat`, `MatNullSpace`, `MatNullSpaceCreate()`, `MatNullSpaceDestroy()`, `MatNullSpaceSetFunction()` ## Level advanced ## Location src/mat/interface/matnull.c ## Examples src/snes/tutorials/ex63.c
src/tao/unconstrained/tutorials/burgers_spectral.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/ts/tutorials/ex50.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matnull.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)