Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
misc.h File Reference

Go to the source code of this file.

Macros

#define LM_LAPACK_SUFFIX   _
#define LM_BLAS_SUFFIX   _
#define LCAT_(a, b)
#define LCAT(a, b)
#define RCAT_(a, b)
#define RCAT(a, b)
#define LM_MK_LAPACK_NAME(s)
#define LM_MK_BLAS_NAME(s)
#define __BLOCKSZ__
#define __BLOCKSZ__SQ   (__BLOCKSZ__)*(__BLOCKSZ__)
#define LM_CAT__(a, b)
#define LM_CAT_(a, b)
#define LM_ADD_PREFIX(s)
#define FABS(x)

Functions

void slevmar_trans_mat_mat_mult (float *a, float *b, int n, int m)
void dlevmar_trans_mat_mat_mult (double *a, double *b, int n, int m)
void slevmar_fdif_forw_jac_approx (void(*func)(float *p, float *hx, int m, int n, void *adata), float *p, float *hx, float *hxx, float delta, float *jac, int m, int n, void *adata)
void dlevmar_fdif_forw_jac_approx (void(*func)(double *p, double *hx, int m, int n, void *adata), double *p, double *hx, double *hxx, double delta, double *jac, int m, int n, void *adata)
void slevmar_fdif_cent_jac_approx (void(*func)(float *p, float *hx, int m, int n, void *adata), float *p, float *hxm, float *hxp, float delta, float *jac, int m, int n, void *adata)
void dlevmar_fdif_cent_jac_approx (void(*func)(double *p, double *hx, int m, int n, void *adata), double *p, double *hxm, double *hxp, double delta, double *jac, int m, int n, void *adata)
float slevmar_L2nrmxmy (float *e, float *x, float *y, int n)
double dlevmar_L2nrmxmy (double *e, double *x, double *y, int n)
int slevmar_covar (float *JtJ, float *C, float sumsq, int m, int n)
int dlevmar_covar (double *JtJ, double *C, double sumsq, int m, int n)
int slevmar_box_check (float *lb, float *ub, int m)
int dlevmar_box_check (double *lb, double *ub, int m)
int slevmar_chol (float *C, float *W, int m)
int dlevmar_chol (double *C, double *W, int m)

Macro Definition Documentation

◆ __BLOCKSZ__

#define __BLOCKSZ__
Value:
32 /* block size for cache-friendly matrix-matrix multiply. It should be
* such that __BLOCKSZ__^2*sizeof(LM_REAL) is smaller than the CPU (L1)
* data cache size. Notice that a value of 32 when LM_REAL=double assumes
* an 8Kb L1 data cache (32*32*8=8K). This is a concervative choice since
* newer Pentium 4s have a L1 data cache of size 16K, capable of holding
* up to 45x45 double blocks.
*/

Definition at line 54 of file misc.h.

◆ __BLOCKSZ__SQ

#define __BLOCKSZ__SQ   (__BLOCKSZ__)*(__BLOCKSZ__)

Definition at line 55 of file misc.h.

◆ FABS

#define FABS ( x)
Value:
(((x)>=0.0)? (x) : -(x))

Definition at line 62 of file misc.h.

◆ LCAT

#define LCAT ( a,
b )
Value:
LCAT_(a, b)
#define LCAT_(a, b)
Definition misc.h:40

Definition at line 41 of file misc.h.

◆ LCAT_

#define LCAT_ ( a,
b )
Value:
#a b

Definition at line 40 of file misc.h.

◆ LM_ADD_PREFIX

#define LM_ADD_PREFIX ( s)
Value:
LM_CAT_(LM_PREFIX, s)
#define LM_CAT_(a, b)
Definition misc.h:59

Definition at line 60 of file misc.h.

◆ LM_BLAS_SUFFIX

#define LM_BLAS_SUFFIX   _

Definition at line 37 of file misc.h.

◆ LM_CAT_

#define LM_CAT_ ( a,
b )
Value:
LM_CAT__(a, b)
#define LM_CAT__(a, b)
Definition misc.h:58

Definition at line 59 of file misc.h.

◆ LM_CAT__

#define LM_CAT__ ( a,
b )
Value:
a ## b

Definition at line 58 of file misc.h.

◆ LM_LAPACK_SUFFIX

#define LM_LAPACK_SUFFIX   _

Definition at line 24 of file misc.h.

◆ LM_MK_BLAS_NAME

#define LM_MK_BLAS_NAME ( s)
Value:
#define LM_ADD_PREFIX(s)
Definition misc.h:60
#define LM_BLAS_SUFFIX
Definition misc.h:37

Definition at line 50 of file misc.h.

◆ LM_MK_LAPACK_NAME

#define LM_MK_LAPACK_NAME ( s)
Value:
#define LM_LAPACK_SUFFIX
Definition misc.h:24

Definition at line 45 of file misc.h.

◆ RCAT

#define RCAT ( a,
b )
Value:
RCAT_(a, b)
#define RCAT_(a, b)
Definition misc.h:42

Definition at line 43 of file misc.h.

◆ RCAT_

#define RCAT_ ( a,
b )
Value:
a #b

Definition at line 42 of file misc.h.

Function Documentation

◆ dlevmar_box_check()

int dlevmar_box_check ( double * lb,
double * ub,
int m )
extern

References n.

◆ dlevmar_chol()

int dlevmar_chol ( double * C,
double * W,
int m )
extern

◆ dlevmar_covar()

int dlevmar_covar ( double * JtJ,
double * C,
double sumsq,
int m,
int n )
extern

References n.

◆ dlevmar_fdif_cent_jac_approx()

void dlevmar_fdif_cent_jac_approx ( void(* func )(double *p, double *hx, int m, int n, void *adata),
double * p,
double * hxm,
double * hxp,
double delta,
double * jac,
int m,
int n,
void * adata )
extern

References n.

◆ dlevmar_fdif_forw_jac_approx()

void dlevmar_fdif_forw_jac_approx ( void(* func )(double *p, double *hx, int m, int n, void *adata),
double * p,
double * hx,
double * hxx,
double delta,
double * jac,
int m,
int n,
void * adata )
extern

References n.

◆ dlevmar_L2nrmxmy()

double dlevmar_L2nrmxmy ( double * e,
double * x,
double * y,
int n )
extern

References n.

◆ dlevmar_trans_mat_mat_mult()

void dlevmar_trans_mat_mat_mult ( double * a,
double * b,
int n,
int m )
extern

◆ slevmar_box_check()

int slevmar_box_check ( float * lb,
float * ub,
int m )
extern

◆ slevmar_chol()

int slevmar_chol ( float * C,
float * W,
int m )
extern

◆ slevmar_covar()

int slevmar_covar ( float * JtJ,
float * C,
float sumsq,
int m,
int n )
extern

◆ slevmar_fdif_cent_jac_approx()

void slevmar_fdif_cent_jac_approx ( void(* func )(float *p, float *hx, int m, int n, void *adata),
float * p,
float * hxm,
float * hxp,
float delta,
float * jac,
int m,
int n,
void * adata )
extern

References n.

◆ slevmar_fdif_forw_jac_approx()

void slevmar_fdif_forw_jac_approx ( void(* func )(float *p, float *hx, int m, int n, void *adata),
float * p,
float * hx,
float * hxx,
float delta,
float * jac,
int m,
int n,
void * adata )
extern

References n.

◆ slevmar_L2nrmxmy()

float slevmar_L2nrmxmy ( float * e,
float * x,
float * y,
int n )
extern

References n.

◆ slevmar_trans_mat_mat_mult()

void slevmar_trans_mat_mat_mult ( float * a,
float * b,
int n,
int m )
extern