Loading...
Searching...
No Matches
Max1DLogDistance.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_DISTANCE_MAX1DLOGDISTANCE_H_
6#define GPR_AUXILIARY_DISTANCE_MAX1DLOGDISTANCE_H_
7
8#include "../Distance.h"
9#include "DistanceBase.h"
10
11namespace aux::distance {
12
15public:
16 void distance(const gpr::Coord& x1, const gpr::Coord& x2,
17 const gpr::AtomsConfiguration& conf_info,
18 gpr::FieldMatrixd& dist) const override
19 {
20 aux::Distance engine;
21 engine.dist_max1Dlog(x1, x2, conf_info, dist);
22 }
23};
24
25} // namespace aux::distance
26
27#endif
Methods to calculate distances between atoms.
Definition Distance.h:154
void dist_max1Dlog(const gpr::Coord &x1, const gpr::Coord &x2, const gpr::AtomsConfiguration &conf_info, gpr::FieldMatrixd &dist)
Give the maximum difference in the logarithmic inter-atomic distances between atomic configurations C...
Definition Distance.cpp:462
DistanceMetricType::MAX_1D_LOG. Delegates to aux::Distance::dist_max1Dlog.
void distance(const gpr::Coord &x1, const gpr::Coord &x2, const gpr::AtomsConfiguration &conf_info, gpr::FieldMatrixd &dist) const override
Pairwise distances between the rows of x1 and the rows of x2.
FieldMatrixd Coord
Definition Macros.h:35
Eigen::Matrix< double, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixd
Definition Macros.h:25
Stores configurations of all atoms in the system.
Definition Structures.h:832