ComPWA
Common Partial-Wave-Analysis Framework
Faddeeva.cc File Reference

This file contains the implementation of the Faddeeva package, which is used only in the Voigtian class in the ComPWA framework. More...

#include "Faddeeva.h"
#include <float.h>
#include <math.h>
+ Include dependency graph for Faddeeva.cc:

Go to the source code of this file.

Macros

#define Inf   (1. / 0.)
 
#define NaN   (0. / 0.)
 
#define USE_CONTINUED_FRACTION   1
 

Typedefs

typedef double complex cmplx
 

Functions

static cmplx cpolar (double r, double t)
 
cmplx FADDEEVA() erfcx (cmplx z, double relerr)
 
double FADDEEVA_RE() erf (double x)
 
cmplx FADDEEVA() erf (cmplx z, double relerr)
 
cmplx FADDEEVA() erfi (cmplx z, double relerr)
 
double FADDEEVA_RE() erfi (double x)
 
double FADDEEVA_RE() erfc (double x)
 
cmplx FADDEEVA() erfc (cmplx z, double relerr)
 
double FADDEEVA_RE() Dawson (double x)
 
cmplx FADDEEVA() Dawson (cmplx z, double relerr)
 
static double sinc (double x, double sinx)
 
static double sinh_taylor (double x)
 
static double sqr (double x)
 
cmplx FADDEEVA() w (cmplx z, double relerr)
 
static double erfcx_y100 (double y100)
 
double FADDEEVA_RE() erfcx (double x)
 
static double w_im_y100 (double y100, double x)
 
double FADDEEVA() w_im (double x)
 

Variables

static const double expa2n2 []
 

Detailed Description

This file contains the implementation of the Faddeeva package, which is used only in the Voigtian class in the ComPWA framework.

Definition in file Faddeeva.cc.

Macro Definition Documentation

◆ Inf

#define Inf   (1. / 0.)

Definition at line 267 of file Faddeeva.cc.

◆ NaN

#define NaN   (0. / 0.)

Definition at line 268 of file Faddeeva.cc.

◆ USE_CONTINUED_FRACTION

#define USE_CONTINUED_FRACTION   1

Typedef Documentation

◆ cmplx

typedef double complex cmplx

Definition at line 235 of file Faddeeva.cc.

Function Documentation

◆ cpolar()

static cmplx cpolar ( double  r,
double  t 
)
inlinestatic

Definition at line 271 of file Faddeeva.cc.

◆ Dawson() [1/2]

double FADDEEVA_RE() Dawson ( double  x)

Definition at line 463 of file Faddeeva.cc.

◆ Dawson() [2/2]

cmplx FADDEEVA() Dawson ( cmplx  z,
double  relerr 
)

Definition at line 469 of file Faddeeva.cc.

◆ erf() [1/2]

double FADDEEVA_RE() erf ( double  x)

Definition at line 289 of file Faddeeva.cc.

◆ erf() [2/2]

cmplx FADDEEVA() erf ( cmplx  z,
double  relerr 
)

Definition at line 321 of file Faddeeva.cc.

◆ erfc() [1/2]

double FADDEEVA_RE() erfc ( double  x)

Definition at line 418 of file Faddeeva.cc.

◆ erfc() [2/2]

cmplx FADDEEVA() erfc ( cmplx  z,
double  relerr 
)

Definition at line 432 of file Faddeeva.cc.

◆ erfcx() [1/2]

cmplx FADDEEVA() erfcx ( cmplx  z,
double  relerr 
)

Definition at line 284 of file Faddeeva.cc.

◆ erfcx() [2/2]

double FADDEEVA_RE() erfcx ( double  x)

Definition at line 2404 of file Faddeeva.cc.

◆ erfcx_y100()

static double erfcx_y100 ( double  y100)
static

Definition at line 996 of file Faddeeva.cc.

◆ erfi() [1/2]

cmplx FADDEEVA() erfi ( cmplx  z,
double  relerr 
)

Definition at line 407 of file Faddeeva.cc.

◆ erfi() [2/2]

double FADDEEVA_RE() erfi ( double  x)

Definition at line 413 of file Faddeeva.cc.

◆ sinc()

static double sinc ( double  x,
double  sinx 
)
inlinestatic

Definition at line 597 of file Faddeeva.cc.

◆ sinh_taylor()

static double sinh_taylor ( double  x)
inlinestatic

Definition at line 602 of file Faddeeva.cc.

◆ sqr()

static double sqr ( double  x)
inlinestatic

Definition at line 607 of file Faddeeva.cc.

◆ w()

cmplx FADDEEVA() w ( cmplx  z,
double  relerr 
)

Definition at line 668 of file Faddeeva.cc.

◆ w_im()

double FADDEEVA() w_im ( double  x)

Definition at line 4004 of file Faddeeva.cc.

◆ w_im_y100()

static double w_im_y100 ( double  y100,
double  x 
)
static

Definition at line 2440 of file Faddeeva.cc.

Variable Documentation

◆ expa2n2

const double expa2n2[]
static

Definition at line 611 of file Faddeeva.cc.