RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
FiniteDifference.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2026 Greg Landrum and other RDKit contributors
3
//
4
// @@ All Rights Reserved @@
5
// This file is part of the RDKit.
6
// The contents are covered by the terms of the BSD license
7
// which is included in the file license.txt, found at the root
8
// of the RDKit source tree.
9
//
10
#include <
RDGeneral/export.h
>
11
#ifndef RD_FINITEDIFFERENCE_H
12
#define RD_FINITEDIFFERENCE_H
13
14
namespace
ForceFields
{
15
class
ForceField
;
16
17
/// \brief Compares analytic and central-difference gradients for a force field.
18
///
19
/// \param ff an initialized ForceField
20
/// \param stepSize the displacement used for the central difference
21
///
22
/// \return the maximum absolute deviation between analytic and
23
/// finite-difference gradient components
24
RDKIT_FORCEFIELD_EXPORT
double
calcFiniteDifference
(
ForceField
&ff,
25
double
stepSize = 1e-5);
26
27
}
// namespace ForceFields
28
29
#endif
ForceFields::ForceField
A class to store forcefields and handle minimization.
Definition
ForceField.h:79
export.h
RDKIT_FORCEFIELD_EXPORT
#define RDKIT_FORCEFIELD_EXPORT
Definition
export.h:201
ForceFields
Definition
TorsionAngleContribs.h:21
ForceFields::calcFiniteDifference
RDKIT_FORCEFIELD_EXPORT double calcFiniteDifference(ForceField &ff, double stepSize=1e-5)
Compares analytic and central-difference gradients for a force field.
ForceField
FiniteDifference.h
Generated on
for RDKit by
1.15.0