Loading...
Searching...
No Matches
DistanceBase.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_DISTANCEBASE_H_
6#define GPR_AUXILIARY_DISTANCE_DISTANCEBASE_H_
7
10
11namespace aux::distance {
12
16public:
17 virtual ~DistanceBase() = default;
18
20 virtual void distance(const gpr::Coord& x1, const gpr::Coord& x2,
21 const gpr::AtomsConfiguration& conf_info,
22 gpr::FieldMatrixd& dist) const = 0;
23};
24
25} // namespace aux::distance
26
27#endif
virtual void distance(const gpr::Coord &x1, const gpr::Coord &x2, const gpr::AtomsConfiguration &conf_info, gpr::FieldMatrixd &dist) const =0
Pairwise distances between the rows of x1 and the rows of x2.
virtual ~DistanceBase()=default
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