# 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
 `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.html</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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
