GQCP
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GQCP::ConstantDamper Class Reference

#include <ConstantDamper.hpp>

Collaboration diagram for GQCP::ConstantDamper:
Collaboration graph

Public Member Functions

 ConstantDamper (const double alpha)
 
template<typename Subject >
Subject accelerate (const Subject &last, const Subject &next_to_last)
 

Detailed Description

An accelerator that produces its accelerated subject by a damped linear combination of the two previous subjects.

Constructor & Destructor Documentation

◆ ConstantDamper()

GQCP::ConstantDamper::ConstantDamper ( const double  alpha)
inline
Parameters
alphathe damping factor

Member Function Documentation

◆ 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
Subjectthe type of subject that should be accelerated
Parameters
lastthe most recent subject
next_to_lastthe second most recent subject
Returns
an accelerated subject

The documentation for this class was generated from the following file: