:orphan:
# MatCreateFromParCSR
Creates a `Mat` from a `hypre_ParCSRMatrix` 
## Synopsis
```
PETSC_EXTERN PetscErrorCode MatCreateFromParCSR(hypre_ParCSRMatrix *parcsr, MatType mtype, PetscCopyMode copymode, Mat *A)
```
Collective


## Input Parameters

- ***parcsr   -*** the pointer to the `hypre_ParCSRMatrix`
- ***mtype    -*** matrix type to be created. Currently `MATAIJ`, `MATIS` and `MATHYPRE` are supported.
- ***copymode -*** PETSc copying options, see  `PetscCopyMode`



## Output Parameter

- ***A  -*** the matrix





## See Also
 [](ch_matrices), `Mat`, `MatHYPRE`, `PetscCopyMode`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/hypre/mhypre.c.html#MatCreateFromParCSR">src/mat/impls/hypre/mhypre.c</A>


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