# 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 `MatBindToCPU()` ## Level intermediate ## Location src/mat/utils/gcreate.c --- [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](/docs/manualpages/index.md) [Index of all manual pages](/docs/manualpages/singleindex.md)