:orphan:
# MATHTOOL
"htool" - A matrix type for hierarchical matrices using the Htool package. Use `./configure --download-htool` to install PETSc to use Htool.
## Options Database Key
- ***-mat_type htool -*** matrix type to `MATHTOOL`
## See Also
[](ch_matrices), `Mat`, `MATH2OPUS`, `MATDENSE`, `MatCreateHtoolFromKernel()`, `MatHtoolSetKernel()`
## Level
beginner
## Location
src/mat/impls/htool/htool.cxx
## Examples
src/ksp/ksp/tutorials/ex82.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)