:orphan:
# 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





## See Also
 `Vec`

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