Loading...
Searching...
No Matches
ChainRealign.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// Mid-run chain re-alignment for gprn (--midrun-realign). Each interior
6// image is IRA-matched onto its (already realigned) predecessor so the
7// whole band sits in chain-consistent Cartesian frames after large
8// moves or MMF bursts. This reconditions the band's tangents and
9// spring forces, which are computed componentwise on raw Cartesian
10// differences between neighbouring images.
11//
12// Why this is GP-transparent: the GP fingerprint is the inverse
13// interatomic distance descriptor accumulated per pairtype
14// (gpr/auxiliary/Distance.cpp), which is invariant under rigid
15// rotations, rigid translations, and same-element permutations. IRA
16// assignments are composed of exactly those three operations (libira
17// matches like atom types onto like). A realigned image therefore
18// presents an identical descriptor to the GP: the training set, the
19// posterior mean/variance, and every acquisition score are unchanged.
20// Only the Cartesian embedding of the band differs.
21
22#ifndef GPR_AUXILIARY_CHAINREALIGN_H_
23#define GPR_AUXILIARY_CHAINREALIGN_H_
24
25#include <cstdint>
26#include <vector>
27
28namespace gpr {
29namespace neb {
30class NEBPath;
31} // namespace neb
32} // namespace gpr
33
34namespace aux {
35
40
58 gpr::neb::NEBPath& path, const std::vector<int>& atomic_numbers,
59 std::vector<std::vector<uint64_t>>* image_ids, double kmax_factor = 1.8);
60
61} // namespace aux
62
63#endif // GPR_AUXILIARY_CHAINREALIGN_H_
NEB path: chain of images between two endpoints.
Definition NEBPath.h:57
ChainRealignStats realignChainToPredecessors(gpr::neb::NEBPath &path, const std::vector< int > &atomic_numbers, std::vector< std::vector< uint64_t > > *image_ids, double kmax_factor)
The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition,...
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16
int images_failed
libira errors (image left untouched)
int images_realigned
non-identity assignments applied