# VecUniqueEntries
Compute the number of unique entries, and those entries 
## Synopsis
```
#include "petscvec.h" 
PetscErrorCode VecUniqueEntries(Vec vec, PetscInt *n, PetscScalar **e)
```
Collective


## Input Parameter

- ***vec -*** the vector



## Output Parameters

- ***n -*** The number of unique entries
- ***e -*** The entries





## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/utils/vinv.c.html#VecUniqueEntries">src/vec/vec/utils/vinv.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/utils/vinv.c)


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