# DMPlexMetricIntersection
Compute the intersection of a list of metrics 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexMetricIntersection(DM dm, PetscInt numMetrics, Vec metrics[], Vec metricInt)
```

## Input Parameters

- ***dm         -*** The DM
- ***numMetrics -*** The number of metrics to be intersected
- ***metrics    -*** The metrics to be intersected



## Output Parameter

- ***metricInt  -*** The intersected metric





## Notes

The intersection of a list of metrics has the minimal ellipsoid which fits within the ellipsoids of the component metrics.

The implementation used here is only consistent with the minimal ellipsoid definition in the case numMetrics = 2.


## See Also
 `DMPlexMetricIntersection2()`, `DMPlexMetricIntersection3()`, `DMPlexMetricAverage()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexmetric.c.html#DMPlexMetricIntersection">src/dm/impls/plex/plexmetric.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexmetric.c)


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