:orphan:
# MatBoundToCPU
query if a matrix is bound to the CPU 
## Synopsis
```
#include "petscmat.h"  
PetscErrorCode MatBoundToCPU(Mat A, PetscBool *flg)
```

## Input Parameter

- ***A -*** the matrix



## Output Parameter

- ***flg -*** the logical flag





## See Also
 [](ch_matrices), `Mat`, `MatBindToCPU()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/utils/gcreate.c.html#MatBoundToCPU">src/mat/utils/gcreate.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/utils/gcreate.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)  
