MADNESS  version 0.9
Public Member Functions | Public Attributes | List of all members
madness::xfunction Struct Reference

The Root structure is needed by the TDA class. More...

#include <TDA.h>

Collaboration diagram for madness::xfunction:
Collaboration graph
[legend]

Public Member Functions

 xfunction (World &world)
 
 xfunction (World &world, const vecfuncT &x1)
 
 xfunction (const xfunction &other)
 the copy contructor More...
 
xfunctionoperator= (const xfunction &other)
 assignment operator (needed by kain) More...
 
xfunction operator-= (const xfunction &b)
 
xfunction operator- (const xfunction &b) const
 
xfunction operator+= (const xfunction &b)
 
xfunction operator* (double a) const
 
bool operator<= (const xfunction &b) const
 
bool operator< (const xfunction &b) const
 

Public Attributes

Worldworld
 
vecfuncT x
 the response orbitals More...
 
vecfuncT Vx
 the applied potentials (to save memory this will mostly be empty) More...
 
double omega
 the currrent excitation energy used to parametrize the BSH operator More...
 
std::vector< double > expectation_value
 the expectation values (as vector so the conergence can be plotted) More...
 
std::vector< double > error
 the errors after each bsh step More...
 
std::vector< double > delta
 the errors in omega after each bsh step More...
 
bool converged
 true if the xfunctions has converged More...
 
size_t number
 the number of the xfunction More...
 
size_t iterations
 number of iterations already taken More...
 
bool kain
 true if the kain update should be used, false if a full step update should be forced More...
 
vecfuncT current_residuals
 the residuals of the last bsh step, is needed if the kain solver should be used More...
 
double f_length
 
double f_velocity
 

Detailed Description

The Root structure is needed by the TDA class.

Constructor & Destructor Documentation

madness::xfunction::xfunction ( World world)
inline

default constructor

Parameters
[in]worldthe world is needed as a reference

Referenced by operator-().

madness::xfunction::xfunction ( World world,
const vecfuncT x1 
)
inline

constructs a xfunctions object and initializes the x-vecfunction (response orbitals)

Parameters
[in]worldthe world is needed
[in]x1vectorfunction of response orbitals
madness::xfunction::xfunction ( const xfunction other)
inline

the copy contructor

Member Function Documentation

xfunction madness::xfunction::operator* ( double  a) const
inline
xfunction madness::xfunction::operator+= ( const xfunction b)
inline

References madness::add(), and x.

xfunction madness::xfunction::operator- ( const xfunction b) const
inline

References madness::sub(), x, and xfunction().

xfunction madness::xfunction::operator-= ( const xfunction b)
inline

References madness::sub(), and x.

bool madness::xfunction::operator< ( const xfunction b) const
inline

References omega.

bool madness::xfunction::operator<= ( const xfunction b) const
inline

References omega.

xfunction& madness::xfunction::operator= ( const xfunction other)
inline

assignment operator (needed by kain)

References converged, delta, error, expectation_value, f_length, f_velocity, iterations, kain, number, omega, Vx, and x.

Member Data Documentation

bool madness::xfunction::converged

true if the xfunctions has converged

Referenced by main(), and operator=().

vecfuncT madness::xfunction::current_residuals

the residuals of the last bsh step, is needed if the kain solver should be used

std::vector<double> madness::xfunction::delta

the errors in omega after each bsh step

Referenced by main(), and operator=().

std::vector<double> madness::xfunction::error

the errors after each bsh step

Referenced by main(), and operator=().

std::vector<double> madness::xfunction::expectation_value

the expectation values (as vector so the conergence can be plotted)

Referenced by main(), and operator=().

double madness::xfunction::f_length

Oscillator strenght in length and velocity gauge will be calcualted after convergece, default is 999

Referenced by operator=().

double madness::xfunction::f_velocity

Referenced by operator=().

size_t madness::xfunction::iterations

number of iterations already taken

Referenced by main(), and operator=().

bool madness::xfunction::kain

true if the kain update should be used, false if a full step update should be forced

Referenced by operator=().

size_t madness::xfunction::number

the number of the xfunction

Referenced by main(), and operator=().

double madness::xfunction::omega

the currrent excitation energy used to parametrize the BSH operator

Referenced by main(), operator<(), operator<=(), and operator=().

vecfuncT madness::xfunction::Vx

the applied potentials (to save memory this will mostly be empty)

Referenced by operator=().

World& madness::xfunction::world
vecfuncT madness::xfunction::x

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