# Vecs
Collection of vectors where the data for the vectors is stored in one contiguous memory 
## Synopsis
```
struct _n_Vecs {
  PetscInt n;
  Vec      v;
};
```



## Notes
Temporary construct for handling multiply right hand side solves

This is faked by storing a single vector that has enough array space for
n vectors


## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscvec.h.html#Vecs">include/petscvec.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscvec.h)


[Index of all Vec routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
