Advanced Multi-Physics (AMP)
On-Line Documentation
NearestPairSearch.h
Go to the documentation of this file.
1#ifndef included_AMP_NearestPairSearch
2#define included_AMP_NearestPairSearch
3
4#include <iostream>
5#include <stdlib.h>
6#include <utility>
7#include <vector>
8
9
10namespace AMP::Mesh {
11template<class TYPE>
12class MeshPoint; // Forward declare MeshPoint
13} // namespace AMP::Mesh
14
15
16namespace AMP {
17
19
24template<int NDIM, class TYPE>
25inline std::pair<int, int> find_min_dist( const int N, const TYPE *x );
26
27
29
33std::pair<int, int> find_min_dist( const std::vector<AMP::Mesh::MeshPoint<double>> &x );
34
35
36} // namespace AMP
37
38#include "AMP/utils/NearestPairSearch.hpp"
39
40#endif
std::pair< int, int > find_min_dist(const int N, const TYPE *x)
Function to compute the closest pair of points.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page