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