:orphan:
# MatNestSetVecType
Sets the type of `Vec` returned by `MatCreateVecs()` 
## Synopsis
```
#include "petscmat.h"   
PetscErrorCode MatNestSetVecType(Mat A, VecType vtype)
```
Not Collective


## Input Parameters

- ***A  -*** `MATNEST` matrix
- ***vtype -*** `VecType` to use for creating vectors





## See Also
 [](ch_matrices), `Mat`, `MATNEST`, `MatCreateVecs()`, `MATNEST`, `MatCreateNest()`, `VecType`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/nest/matnest.c.html#MatNestSetVecType">src/mat/impls/nest/matnest.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex27.c.html">src/ksp/ksp/tutorials/ex27.c</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/nest/matnest.c.html#MatNestSetVecType_Nest">MatNestSetVecType_Nest in src/mat/impls/nest/matnest.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/nest/matnest.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)  
