# MatHtoolGetHierarchicalMat
Retrieves the opaque pointer to a Htool virtual matrix stored in a `MATHTOOL`. 
## Synopsis
```
#include "petscmat.h" 
PETSC_EXTERN PetscErrorCode MatHtoolGetHierarchicalMat(Mat A, const htool::VirtualHMatrix<PetscScalar> **hmatrix)
```

## Input Parameter

- ***A -*** hierarchical matrix



## Output Parameter

- ***hmatrix -*** opaque pointer to a Htool virtual matrix





## See Also
 `MATHTOOL`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/htool/htool.cxx.html#MatHtoolGetHierarchicalMat">src/mat/impls/htool/htool.cxx</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/htool/htool.cxx.html#MatHtoolGetHierarchicalMat_Htool">MatHtoolGetHierarchicalMat_Htool in src/mat/impls/htool/htool.cxx</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/htool/htool.cxx)


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