Loading...
Searching...
No Matches
CutoffNeighbors.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2#pragma once
3#include <array>
4#include <cstddef>
5#include <vector>
6
7namespace eonc {
8struct CutoffPair {
9 int first;
10 int second;
11 std::array<int, 3> shift;
13};
14// Fully periodic atom-image rows; d = R_j - R_i + shift * cell.
15std::vector<CutoffPair> periodicCutoffNeighbors(const double *positions,
16 size_t atoms,
17 const double *rowMajorCell,
18 double cutoff,
19 bool full = true);
20} // namespace eonc
RAII resource manager for the ARTn C library with global synchronization.
std::vector< CutoffPair > periodicCutoffNeighbors(const double *positions, size_t atoms, const double *cell, double cutoff, bool full)
std::array< int, 3 > shift