Mantid
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
Fast_Exponential.h File Reference

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Kernel
 

Macros

#define EXP_A   (1048576 / M_LN2)
 Based on the article: A Fast, Compact Approximation of the Exponential Function by Nicol N. More...
 
#define EXP_C   60801
 

Functions

double Mantid::Kernel::fast_exp (double y)
 

Macro Definition Documentation

◆ EXP_A

#define EXP_A   (1048576 / M_LN2)

Based on the article: A Fast, Compact Approximation of the Exponential Function by Nicol N.

Schraudolph and on the slighly modified version: On a Fast, Compact Approximation of the Exponential Function Neural Computation archive Volume 12 , Issue 9 (September 2000) Pages 2009-2012 Author: Gavin C. Cawley University of East Anglia, Norwich, Norfolk NR4 7TJ, England This is actually a bit faster than a LookupTable with linear interpolation, however it seems less accurate with error as big as a few % for some values of y.

Definition at line 26 of file Fast_Exponential.h.

◆ EXP_C

#define EXP_C   60801

Definition at line 27 of file Fast_Exponential.h.