JDFTx  1.7.0
TranslationOperatorFourier Class Reference

The exact translation operator in PW basis, although much slower and with potential ringing issues. More...

#include <TranslationOperator.h>

Inheritance diagram for TranslationOperatorFourier:
TranslationOperator

Public Member Functions

 TranslationOperatorFourier (const GridInfo &gInfo)
 
void taxpy (const vector3<> &t, double alpha, const ScalarField &x, ScalarField &y) const
 
- Public Member Functions inherited from TranslationOperator
 TranslationOperator (const GridInfo &gInfo)
 

Additional Inherited Members

- Public Attributes inherited from TranslationOperator
const GridInfogInfo
 

Detailed Description

The exact translation operator in PW basis, although much slower and with potential ringing issues.

Member Function Documentation

◆ taxpy()

void TranslationOperatorFourier::taxpy ( const vector3<> &  t,
double  alpha,
const ScalarField x,
ScalarField y 
) const
virtual

Compute \( y += alpha T_t(x) \) , where \( T_t \) is the translation operator \( T_t(x(r)) = x(r+t) \) modulo the lattice vectors T must conserve integral(x) and satisfy \( T^{\dagger}_t = T_{-t} \) exactly for gradient correctness Note that \( T^{-1}_t = T_{-t} \) may only be approximately true for some implementations.

Implements TranslationOperator.


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