Loading...
Searching...
No Matches
CutoffNeighbors.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5#ifndef GPR_AUXILIARY_CUTOFFNEIGHBORS_H_
6#define GPR_AUXILIARY_CUTOFFNEIGHBORS_H_
7
8#include <array>
9#include <cstddef>
10#include <vector>
11
12namespace gpr::geometry {
13
14struct CutoffPair {
15 std::size_t first;
16 std::size_t second;
17 std::array<int, 3> shift;
18};
19
26std::vector<CutoffPair> cutoffNeighbors(const double* positions,
27 std::size_t count,
28 const std::array<double, 9>& cell,
29 const std::array<bool, 3>& periodic,
30 double cutoff);
31
32} // namespace gpr::geometry
33
34#endif // GPR_AUXILIARY_CUTOFFNEIGHBORS_H_
std::vector< CutoffPair > cutoffNeighbors(const double *positions, std::size_t count, const std::array< double, 9 > &cell, const std::array< bool, 3 > &periodic, double cutoff)
std::array< int, 3 > shift