fastfunctions.h File Reference

This is a fast function library originally intended to speed up QMcBeaver a Quantum Monte Carlo program. More...

#include <math.h>

Go to the source code of this file.

Functions

double fastPower (double x, int n)
 Fast power function for use when the exponent is a small integer.
double pythag (double a, double b)
 A safe implementation of pythagoran's theorem.


Detailed Description

This is a fast function library originally intended to speed up QMcBeaver a Quantum Monte Carlo program.

Definition in file fastfunctions.h.


Function Documentation

double fastPower ( double  x,
int  n 
)

Fast power function for use when the exponent is a small integer.

Parameters:
x base
n exponent
Returns:
$x^n$

Definition at line 15 of file fastfunctions.cpp.

Referenced by QMCNuclearForces::calcCoefficients().

double pythag ( double  a,
double  b 
)

A safe implementation of pythagoran's theorem.

It shouldn't under or over flow.

Definition at line 42 of file fastfunctions.cpp.

Referenced by Array2D< QMCProperty >::eigenvaluesRS().


Generated on Sat Jul 5 16:13:59 2008 for QMcBeaver by  doxygen 1.5.6