:orphan:
# MatH2OpusCompress
Compress a hierarchical matrix. 
## Synopsis
```
PetscErrorCode MatH2OpusCompress(Mat A, PetscReal tol)
```

## Input Parameters

- ***A -*** the matrix
- ***tol -*** the absolute truncation threshold





## See Also
 [](ch_matrices), `Mat`, `MatCreate()`, `MATH2OPUS`, `MatCreateH2OpusFromMat()`, `MatCreateH2OpusFromKernel()`, `MatH2OpusOrthogonalize()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/h2opus/cuda/math2opus.cu.html#MatH2OpusCompress">src/mat/impls/h2opus/cuda/math2opus.cu</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/h2opus/cuda/math2opus.cu)


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