mitsuba-af602c6fd98a/src/libcore/quad.cpp
/* note: all regions must have same fdim */
all regions must have same fdim
all regions must have same fdim
static int eval_regions(unsigned int nR, region *R,
			const VectorizedIntegrand & f, rule *r)
{
	unsigned int iR;
	if (nR == 0)
		return NDIntegrator::ESuccess; 
	if (r->evalError(r, R->fdim, f, nR, R))
		return NDIntegrator::EFailure;
	for (iR = 0; iR < nR; ++iR)
		R[iR].errmax = errMax(R->fdim, R[iR].ee);
	return NDIntegrator::ESuccess;
}
static int eval_regions ( unsigned int nR , region * R , const VectorizedIntegrand & f , rule * r ) { unsigned int iR ; if ( nR == 0 ) return NDIntegrator :: ESuccess ; if ( r -> evalError ( r , R -> fdim , f , nR , R ) ) return NDIntegrator :: EFailure ; for ( iR = 0 ; iR < nR ; ++ iR ) R [ iR ] . errmax = errMax ( R -> fdim , R [ iR ] . ee ) ; return NDIntegrator :: ESuccess ; }
note: all regions must have same fdim
note : all regions must have same fdim
/* nothing to evaluate */