Anderson2CorrelationFunction Class Reference

#include <Anderson2CorrelationFunction.h>

Inheritance diagram for Anderson2CorrelationFunction:

FixedCuspPadeCorrelationFunction QMCCorrelationFunction

List of all members.

Public Member Functions

void initializeParameters (Array1D< int > &BeginningIndexOfParameterType, Array1D< double > &Parameters, Array1D< int > &BeginningIndexOfConstantType, Array1D< double > &Constants)
 Initializes the correlation function with a specified set of parameters.
void evaluate (double r)
 Evaluates the correlation function and it's first two derivatives at $r$.
double get_p_a (int ai)
 Partial derivative of function with respect to parameter ai.
double get_p2_xa (int ai)
 Second Partial derivative of function with respect to parameters x and ai.
double get_p3_xxa (int ai)
 Third Partial derivative of function with respect to parameters x, x, and ai.
void ChebyshevT_old (int n, double x, double &y, double &dy, double &d2y)
void ChebyshevT (int n, double x, double &y, double &dy, double &d2y)
bool isSingular ()
 Returns $true$ if the correlation function has a singularity in the domain $r\geq0$, and false otherwise.
void print (ostream &strm)
 Override this function if there's some Jastrow specific message you want to print.
Array1D< ComplexgetPoles ()
 Returns all of the poles of the correlation function.
double getFunctionValue ()
 Gets the value of the correlation function for the last evaluated $r$.
double getFunctionValue (double r)
 Evaluate the function as fast as possible by skipping the evaluation of the derivatives.
double getFirstDerivativeValue ()
 Gets the value of the first derivative of the correlation function for the last evaluated $r$.
double getSecondDerivativeValue ()
 Gets the value of the second derivative of the correlation function for the last evaluated $r$.
Array1D< double > getNumeratorCoeffs ()
 Returns the coefficients for the numerator of the Jastrow's function.
Array1D< double > getDenominatorCoeffs ()
 Returns the coefficients for the denominator of the Jastrow's function.

Protected Attributes

double FunctionValue
double dFunctionValue
double d2FunctionValue

Private Attributes

double g
double A
double A2
double F
double A2F
double s2g
double B
double L
double yuk
double dyuk
double d2yuk
double ir
double t1
double t2
double dG_a
double dG_xa
double dG_xxa
double pre
double dpre
double d2pre
double r
double x
int n
double sum_Tn
double sum_dTn
double sum_d2Tn
Array1D< double > Tn
Array1D< double > dTn
Array1D< double > d2Tn
Array1D< double > co


Detailed Description

Definition at line 10 of file Anderson2CorrelationFunction.h.


Member Function Documentation

void Anderson2CorrelationFunction::initializeParameters ( Array1D< int > &  BeginningIndexOfParameterType,
Array1D< double > &  Parameters,
Array1D< int > &  BeginningIndexOfConstantType,
Array1D< double > &  Constants 
) [virtual]

Initializes the correlation function with a specified set of parameters.

This must be called every time the parameters are changed.

Reimplemented from FixedCuspPadeCorrelationFunction.

Definition at line 12 of file Anderson2CorrelationFunction.cpp.

References A, A2, A2F, Array1D< T >::allocate(), B, co, d2Tn, Array1D< T >::dim1(), dTn, F, g, L, n, s2g, and Tn.

void Anderson2CorrelationFunction::evaluate ( double  r  )  [virtual]

double Anderson2CorrelationFunction::get_p_a ( int  ai  )  [virtual]

Partial derivative of function with respect to parameter ai.

Reimplemented from FixedCuspPadeCorrelationFunction.

Definition at line 177 of file Anderson2CorrelationFunction.cpp.

References A, FixedCuspPadeCorrelationFunction::dFunctionValue, dG_a, QMCInput::flags, globalInput, L, QMCFlags::optimize_L, pre, r, s2g, t1, Tn, and yuk.

double Anderson2CorrelationFunction::get_p2_xa ( int  ai  )  [virtual]

Second Partial derivative of function with respect to parameters x and ai.

Reimplemented from FixedCuspPadeCorrelationFunction.

Definition at line 210 of file Anderson2CorrelationFunction.cpp.

References A, FixedCuspPadeCorrelationFunction::d2FunctionValue, FixedCuspPadeCorrelationFunction::dFunctionValue, dG_xa, dpre, dTn, dyuk, F, QMCInput::flags, globalInput, L, QMCFlags::optimize_L, pre, r, s2g, t1, Tn, and x.

double Anderson2CorrelationFunction::get_p3_xxa ( int  ai  )  [virtual]

Third Partial derivative of function with respect to parameters x, x, and ai.

Reimplemented from FixedCuspPadeCorrelationFunction.

Definition at line 244 of file Anderson2CorrelationFunction.cpp.

References A, FixedCuspPadeCorrelationFunction::d2FunctionValue, d2pre, d2Tn, d2yuk, dG_xxa, dpre, dTn, F, QMCInput::flags, globalInput, L, QMCFlags::optimize_L, pre, s2g, t1, Tn, and x.

void Anderson2CorrelationFunction::ChebyshevT_old ( int  n,
double  x,
double &  y,
double &  dy,
double &  d2y 
)

void Anderson2CorrelationFunction::ChebyshevT ( int  n,
double  x,
double &  y,
double &  dy,
double &  d2y 
)

Definition at line 312 of file Anderson2CorrelationFunction.cpp.

References co, d2Tn, dTn, and Tn.

Referenced by evaluate().

bool Anderson2CorrelationFunction::isSingular (  )  [virtual]

Returns $true$ if the correlation function has a singularity in the domain $r\geq0$, and false otherwise.

Reimplemented from FixedCuspPadeCorrelationFunction.

Definition at line 307 of file Anderson2CorrelationFunction.cpp.

References A, and g.

Referenced by evaluate().

void Anderson2CorrelationFunction::print ( ostream &  strm  )  [virtual]

Override this function if there's some Jastrow specific message you want to print.

It will be called right after the Jastrow is initialized.

Reimplemented from FixedCuspPadeCorrelationFunction.

Definition at line 278 of file Anderson2CorrelationFunction.cpp.

References A, A2, B, co, F, StringManipulation::fancyDoubleToString(), g, L, n, and WJ_C_TYPE.

Array1D< Complex > FixedCuspPadeCorrelationFunction::getPoles (  )  [virtual, inherited]

Returns all of the poles of the correlation function.

Implements QMCCorrelationFunction.

Definition at line 71 of file FixedCuspPadeCorrelationFunction.cpp.

References FixedCuspPadeCorrelationFunction::Denominator, and Polynomial::getRoots().

double FixedCuspPadeCorrelationFunction::getFunctionValue (  )  [virtual, inherited]

Gets the value of the correlation function for the last evaluated $r$.

Implements QMCCorrelationFunction.

Definition at line 101 of file FixedCuspPadeCorrelationFunction.cpp.

References FixedCuspPadeCorrelationFunction::FunctionValue.

double FixedCuspPadeCorrelationFunction::getFunctionValue ( double  r  )  [virtual, inherited]

Evaluate the function as fast as possible by skipping the evaluation of the derivatives.

Implements QMCCorrelationFunction.

Definition at line 106 of file FixedCuspPadeCorrelationFunction.cpp.

References FixedCuspPadeCorrelationFunction::Denominator, Polynomial::getFunctionValue(), and FixedCuspPadeCorrelationFunction::Numerator.

double FixedCuspPadeCorrelationFunction::getFirstDerivativeValue (  )  [virtual, inherited]

Gets the value of the first derivative of the correlation function for the last evaluated $r$.

Implements QMCCorrelationFunction.

Definition at line 131 of file FixedCuspPadeCorrelationFunction.cpp.

References FixedCuspPadeCorrelationFunction::dFunctionValue.

double FixedCuspPadeCorrelationFunction::getSecondDerivativeValue (  )  [virtual, inherited]

Gets the value of the second derivative of the correlation function for the last evaluated $r$.

Implements QMCCorrelationFunction.

Definition at line 165 of file FixedCuspPadeCorrelationFunction.cpp.

References FixedCuspPadeCorrelationFunction::d2FunctionValue.

Array1D< double > FixedCuspPadeCorrelationFunction::getNumeratorCoeffs (  )  [virtual, inherited]

Returns the coefficients for the numerator of the Jastrow's function.

Implements QMCCorrelationFunction.

Definition at line 214 of file FixedCuspPadeCorrelationFunction.cpp.

References Polynomial::getCoefficients(), and FixedCuspPadeCorrelationFunction::Numerator.

Array1D< double > FixedCuspPadeCorrelationFunction::getDenominatorCoeffs (  )  [virtual, inherited]

Returns the coefficients for the denominator of the Jastrow's function.

Implements QMCCorrelationFunction.

Definition at line 219 of file FixedCuspPadeCorrelationFunction.cpp.

References FixedCuspPadeCorrelationFunction::Denominator, and Polynomial::getCoefficients().


Member Data Documentation

Definition at line 13 of file Anderson2CorrelationFunction.h.

Referenced by initializeParameters(), isSingular(), and print().

Definition at line 13 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), initializeParameters(), and print().

Definition at line 13 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and initializeParameters().

Definition at line 15 of file Anderson2CorrelationFunction.h.

Referenced by initializeParameters(), and print().

Definition at line 19 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and get_p_a().

Definition at line 19 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and get_p2_xa().

Definition at line 19 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and get_p3_xxa().

Definition at line 20 of file Anderson2CorrelationFunction.h.

Referenced by evaluate().

Definition at line 20 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), get_p2_xa(), get_p3_xxa(), and get_p_a().

Definition at line 20 of file Anderson2CorrelationFunction.h.

Referenced by evaluate().

Definition at line 22 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and get_p_a().

Definition at line 22 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and get_p2_xa().

Definition at line 22 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and get_p3_xxa().

Definition at line 23 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), get_p2_xa(), get_p3_xxa(), and get_p_a().

Definition at line 23 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), get_p2_xa(), and get_p3_xxa().

Definition at line 23 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), and get_p3_xxa().

Definition at line 25 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), get_p2_xa(), and get_p_a().

Definition at line 25 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), get_p2_xa(), and get_p3_xxa().

Definition at line 27 of file Anderson2CorrelationFunction.h.

Referenced by evaluate(), initializeParameters(), and print().

Definition at line 28 of file Anderson2CorrelationFunction.h.

Definition at line 28 of file Anderson2CorrelationFunction.h.

Definition at line 28 of file Anderson2CorrelationFunction.h.

Definition at line 31 of file Anderson2CorrelationFunction.h.

Referenced by ChebyshevT(), get_p3_xxa(), and initializeParameters().

Definition at line 32 of file Anderson2CorrelationFunction.h.

Referenced by ChebyshevT(), initializeParameters(), and print().

double FixedCuspPadeCorrelationFunction::FunctionValue [protected, inherited]

double FixedCuspPadeCorrelationFunction::dFunctionValue [protected, inherited]


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

Generated on Sat Jul 5 16:14:00 2008 for QMcBeaver by  doxygen 1.5.6