def _vegas(self, flags, *args): vegas_args = (self.base_args(flags) + args + self.empty_suave_args + self.empty_divonne_args + self.empty_cuhre_args) out = _cuba('vegas', *vegas_args) [self.neval, self.fail, self.integral, self.error, self.prob] = out self._check_fail() return [self.integral, self.error, self.prob, self.neval]
def _divonne(self, flags, *args): divonne_args = (self.base_args(flags) + self.empty_vegas_args + self.empty_suave_args + args + self.empty_cuhre_args) out = _cuba('divonne', *divonne_args) [self.neval, self.nregions, self.fail, self.integral, self.error, self.prob] = out self._check_fail() return [self.integral, self.error, self.prob, self.neval]
def _cuhre(self, flags, *args): cuhre_args = (self.base_args(flags) + self.empty_vegas_args + self.empty_suave_args + self.empty_divonne_args + args) out = _cuba('cuhre', *cuhre_args) [self.neval, self.nregions, self.fail, self.integral, self.error, self.prob] = out try: self._check_fail() finally: return [self.integral, self.error, self.prob, self.neval]