# MatCreateSeqDenseHIP
Creates a sequential matrix in dense format using HIP. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatCreateSeqDenseHIP(MPI_Comm comm, PetscInt m, PetscInt n, PetscScalar *data, Mat *A)
```
Collective


## Input Parameters

- ***comm -*** MPI communicator
- ***m -*** number of rows
- ***n -*** number of columns
- ***data -*** optional location of GPU matrix data.  Set data=NULL for PETSc
to control matrix memory allocation.



## Output Parameter

- ***A -*** the matrix



## Notes




## See Also
 `MATSEQDENSE`, `MatCreate()`, `MatCreateSeqDense()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/dense/seq/hip/densehip.hip.cpp#MatCreateSeqDenseHIP">src/mat/impls/dense/seq/hip/densehip.hip.cpp</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/dense/seq/hip/densehip.hip.cpp)


[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)  
