s2let  2.2.0
Fast wavelets on the sphere
Macros | Functions
s2let_math.h File Reference
#include <ssht/ssht.h>
Include dependency graph for s2let_math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PI   3.141592653589793238462643383279502884197
 
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define ABS(a)   ((a) > (0.0) ? (a) : (-(a)))
 

Functions

double s2let_math_kappa0_quadtrap_s2dw (double a, double b, int n, double B)
 
double s2let_math_kappa0_quadtrap_needlet (double a, double b, int n)
 
double s2let_math_spline_scalingfct (double x, double y)
 
double ran2_dp (int idum)
 
double maxerr_cplx (S2LET_COMPLEX(double) *a, S2LET_COMPLEX(double) *b, int size)
 
double maxerr (double *a, double *b, int size)
 
unsigned long binomial_coefficient (int n, int k, int exact)
 

Macro Definition Documentation

◆ ABS

#define ABS (   a)    ((a) > (0.0) ? (a) : (-(a)))

◆ MAX

#define MAX (   a,
 
)    ((a) > (b) ? (a) : (b))

◆ MIN

#define MIN (   a,
 
)    ((a) < (b) ? (a) : (b))

◆ PI

#define PI   3.141592653589793238462643383279502884197

Function Documentation

◆ binomial_coefficient()

unsigned long binomial_coefficient ( int  n,
int  k,
int  exact 
)

Computes the binomial coefficient "n choose k".

Parameters
[in]nNumber of elements to choose from
[in]kNumber of elements to pick
[in]exact0 for approximate computation 1 for exact computation
Return values
Numberof possible subsets

exact implementation

◆ maxerr()

double maxerr ( double *  a,
double *  b,
int  size 
)

Max absolute error between two real arrays

◆ maxerr_cplx()

double maxerr_cplx ( S2LET_COMPLEX(double) *  a,
S2LET_COMPLEX(double) *  b,
int  size 
)

◆ ran2_dp()

double ran2_dp ( int  idum)

Random number from seed (Numerical Recipes).

◆ s2let_math_kappa0_quadtrap_needlet()

double s2let_math_kappa0_quadtrap_needlet ( double  a,
double  b,
int  n 
)

Computes smooth "Schwartz" functions for needlets

◆ s2let_math_kappa0_quadtrap_s2dw()

double s2let_math_kappa0_quadtrap_s2dw ( double  a,
double  b,
int  n,
double  B 
)

Computes smooth "Schwartz" functions for scale-discretised wavelets

◆ s2let_math_spline_scalingfct()

double s2let_math_spline_scalingfct ( double  x,
double  y 
)

Computes spline scaling function