GPRidge v1.0.0
GPR-accelerated saddle point searches on potential energy surfaces
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
SubstrateFactor.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_NEB_SUBSTRATE_FACTOR_H_
6
#define GPR_NEB_SUBSTRATE_FACTOR_H_
7
8
#include <Eigen/Dense>
9
10
namespace
gpr::neb
{
11
16
inline
Eigen::LLT<Eigen::MatrixXd>
factorSubstrate
(
17
const
Eigen::MatrixXd& hessian)
18
{
19
return
Eigen::LLT<Eigen::MatrixXd>(hessian);
20
}
21
23
inline
Eigen::VectorXd
substrateStep
(
const
Eigen::MatrixXd& hessian,
24
const
Eigen::VectorXd& force)
25
{
26
auto
factor =
factorSubstrate
(hessian);
27
if
(factor.info() != Eigen::Success)
return
{};
28
return
factor.solve(force);
29
}
30
31
}
// namespace gpr::neb
32
33
#endif
// GPR_NEB_SUBSTRATE_FACTOR_H_
gpr::neb
The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition,...
Definition
ChainRealign.h:29
gpr::neb::substrateStep
Eigen::VectorXd substrateStep(const Eigen::MatrixXd &hessian, const Eigen::VectorXd &force)
One substrate step, H^{-1} force, from that factor.
Definition
SubstrateFactor.h:23
gpr::neb::factorSubstrate
Eigen::LLT< Eigen::MatrixXd > factorSubstrate(const Eigen::MatrixXd &hessian)
Definition
SubstrateFactor.h:16
gpr
neb
SubstrateFactor.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf