#include "fastfunctions.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. | |
| double fastPower | ( | double | x, | |
| int | n | |||
| ) |
Fast power function for use when the exponent is a small integer.
| x | base | |
| n | exponent |
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().
1.5.6