:orphan:
# MATPREALLOCATOR
MATPREALLOCATOR = "preallocator" - A matrix type to be used for computing a matrix preallocation. 
## Operations Provided
```none
  MatSetValues()
```



## Options Database Keys

- ***-mat_type preallocator -*** sets the matrix type to `MATPREALLOCATOR` during a call to `MatSetFromOptions()`





## See Also
 `MATPREALLOCATOR`, `Mat`, `MatPreallocatorPreallocate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/preallocator/matpreallocator.c.html#MATPREALLOCATOR">src/mat/impls/preallocator/matpreallocator.c</A>


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


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