decl.h

来自「The CUBA library provides new implementa」· C头文件 代码 · 共 71 行

H
71
字号
/*	decl.h		Type declarations		this file is part of Divonne		last modified 7 Mar 05 th*/#include "stddecl.h"#define EXTRAPOLATE_EPS (.25*border_.lower)/*#define EXTRAPOLATE_EPS 0x1p-26*/typedef struct {  real lower, upper;} Bounds;typedef const Bounds cBounds;typedef struct {  real avg, spreadsq;  real spread, secondspread;  real nneed, maxerrsq, mindevsq;  void *region;} Totals;typedef struct {  void *first, *last;  real errcoeff[3];  count n;} Rule;typedef const Rule cRule;typedef struct samples {  real weight;  real *x, *f, *avg, *err;  void (*sampler)(const struct samples *, cBounds *, creal);  cRule *rule;  count coeff;  number n, neff;} Samples;typedef const Samples cSamples;#define TYPEDEFREGION \  typedef struct { \    real avg, err, spread, chisq; \    real fmin, fmax; \    real xmin[NDIM], xmax[NDIM]; \  } Result; \  typedef const Result cResult; \  typedef struct region { \    struct region *next; \    count cutcomp, depth; \    real *xmajor, fmajor, fminor, vol; \    Bounds bounds[NDIM]; \    Result result[NCOMP]; \  } Regiontypedef void (*Integrand)(ccount *, creal *, ccount *, real *, cint *);typedef void (*PeakFinder)(ccount *, cBounds *, number *, real *);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?