26 lines
452 B
C
26 lines
452 B
C
/*
|
|
common.c
|
|
Code common to Vegas.c and Vegas.tm
|
|
this file is part of Vegas
|
|
last modified 29 Jul 13 th
|
|
*/
|
|
|
|
|
|
#include "Random.c"
|
|
#include "ChiSquare.c"
|
|
#include "Grid.c"
|
|
|
|
static inline bool BadDimension(cThis *t)
|
|
{
|
|
if( t->ndim > MAXDIM ) return true;
|
|
return t->ndim < SOBOL_MINDIM ||
|
|
(t->seed == 0 && t->ndim > SOBOL_MAXDIM);
|
|
}
|
|
|
|
static inline bool BadComponent(cThis *t)
|
|
{
|
|
if( t->ncomp > MAXCOMP ) return true;
|
|
return t->ncomp < 1;
|
|
}
|
|
|