:orphan:
# MATDENSEHIP
"densehip" - A matrix type to be used for dense matrices on GPUs. This matrix type is identical to `MATSEQDENSEHIP` when constructed with a single process
communicator, and `MATMPIDENSEHIP` otherwise.


## Options Database Key

- ***-mat_type densehip -*** sets the matrix type to `MATDENSEHIP` during a call to
`MatSetFromOptions()`





## See Also
 [](ch_matrices), `Mat`, `MATSEQDENSEHIP`, `MATMPIDENSEHIP`, `MATSEQDENSECUDA`,
`MATMPIDENSECUDA`, `MATDENSE`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/dense/mpi/cupm/hip/matmpidensehip.hip.cpp#MATDENSEHIP">src/mat/impls/dense/mpi/cupm/hip/matmpidensehip.hip.cpp</A>


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


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