#include <ConstantDamper.hpp>
|
| ConstantDamper (const double alpha) |
|
template<typename Subject > |
Subject | accelerate (const Subject &last, const Subject &next_to_last) |
|
An accelerator that produces its accelerated subject by a damped linear combination of the two previous subjects.
◆ ConstantDamper()
GQCP::ConstantDamper::ConstantDamper |
( |
const double |
alpha | ) |
|
|
inline |
◆ accelerate()
template<typename Subject >
Subject GQCP::ConstantDamper::accelerate |
( |
const Subject & |
last, |
|
|
const Subject & |
next_to_last |
|
) |
| |
|
inline |
Calculate an accelerated subject using a constant damping step.
- Template Parameters
-
Subject | the type of subject that should be accelerated |
- Parameters
-
last | the most recent subject |
next_to_last | the second most recent subject |
- Returns
- an accelerated subject
The documentation for this class was generated from the following file: