Loading...
Searching...
No Matches
PbcSimd.h
Go to the documentation of this file.
1/*
2** This file is part of eOn.
3**
4** SPDX-License-Identifier: BSD-3-Clause
5**
6** Copyright (c) 2010--present, eOn Development Team
7** All rights reserved.
8**
9** Repo:
10** https://github.com/TheochemUI/eOn
11*/
12#pragma once
13
14#include <cstddef>
15
16namespace eonc::pbc {
17
18// In-place fractional wrap. Minimum image: x - floor(x + 0.5) in [-0.5, 0.5).
19// Legacy unit interval: fmod(x + 1, 1), i.e. (x + 1) - trunc(x + 1).
20// Both are elementwise on contiguous storage (row-major AtomMatrix).
21void wrapMinimumImage(double *data, size_t n);
22void wrapLegacyUnit(double *data, size_t n);
23
24} // namespace eonc::pbc
void wrapMinimumImage(double *data, size_t n)
Definition PbcSimd.cpp:109
void wrapLegacyUnit(double *data, size_t n)
Definition PbcSimd.cpp:113