Functions
show_matrix_eqn ()
void
show_matrix_eqn (gsl_matrix *M
,
gsl_vector *v
);
Displays a matrix equation of the form M.a
= v
.
solve_svd ()
gsl_vector *
solve_svd (gsl_vector *v
,
gsl_matrix *M
,
int *n_filt
,
int verbose
);
Solves the matrix equation M.x = v, returning x.
Performs rescaling and eigenvalue filtering.
assplode ()
int
assplode (const char *a
,
const char *delims
,
char ***pbits
,
AssplodeFlag flags
);
chomp ()
void
chomp (char *s
);
gaussian_noise ()
double
gaussian_noise (gsl_rng *rng
,
double expected
,
double stddev
);
progress_bar ()
void
progress_bar (int val
,
int total
,
const char *text
);
poisson_noise ()
int
poisson_noise (gsl_rng *rng
,
double expected
);
notrail ()
size_t
notrail (char *s
);
random_flat ()
double
random_flat (gsl_rng *rng
,
double max
);
flat_noise ()
double
flat_noise (gsl_rng *rng
,
double expected
,
double width
);
show_matrix ()
void
show_matrix (gsl_matrix *M
);
Displays a matrix.
STATUS()
#define STATUS(...)
ERROR()
#define ERROR(...)
J_to_eV()
#define J_to_eV(a) ((a)/ELECTRON_CHARGE)
eV_to_J()
#define eV_to_J(a) ((a)*ELECTRON_CHARGE)
biggest()
#define biggest(a,b) ((a>b) ? (a) : (b))
smallest()
#define smallest(a,b) ((a<b) ? (a) : (b))
check_prefix ()
char *
check_prefix (char *prefix
);
safe_basename ()
char *
safe_basename (const char *in
);
deg2rad()
#define deg2rad(a) ((a)*M_PI/180)
rad2deg()
#define rad2deg(a) ((a)*180/M_PI)
is_odd()
#define is_odd(a) ((a)%2==1)
ph_en_to_lambda()
#define ph_en_to_lambda(a) ((PLANCK*C_VACUO)/(a))
ph_lambda_to_en()
#define ph_lambda_to_en(a) ((PLANCK*C_VACUO)/(a))
ph_eV_to_lambda()
#define ph_eV_to_lambda(a) ph_en_to_lambda(eV_to_J(a))
ph_lambda_to_eV()
#define ph_lambda_to_eV(a) J_to_eV(ph_lambda_to_en(a))
likely()
#define likely(x) __builtin_expect (!!(x), 1)
unlikely()
#define unlikely(x) __builtin_expect (!!(x), 0)
Types and Values
C_VACUO
#define C_VACUO (299792458)
ELECTRON_CHARGE
#define ELECTRON_CHARGE (1.6021773e-19)
PLANCK
#define PLANCK (6.62606896e-34)
THOMSON_LENGTH
#define THOMSON_LENGTH (2.81794e-15)
UNUSED
#define UNUSED __attribute__((unused))