:orphan: # MatPythonGetType Get the Python name of a `Mat` object implemented in Python. ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatPythonGetType(Mat mat, const char *pyname[]) ``` Not Collective ## Input Parameter - ***mat -*** the matrix ## Output Parameter - ***pyname -*** full dotted Python name [package].module[.{class|function}] ## See Also [](ch_matrices), `Mat`, `MatType`, `MatCreate()`, `MatSetType()`, `MATPYTHON`, `PetscPythonInitialize()`, `MatPythonSetType()` ## Level intermediate ## Location src/mat/impls/python/pythonmat.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/python/pythonmat.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)