/** * The objective function itself (projected) * * @param x argument * * @return function value * */ double func(const double* x) { int n; double v; projectPoint(x, mAux); v = funcBase(mAux); return v; }
static int RDX_DECL_API ResumeThread(OperationContext *ctx, IObjectManager *objm, RuntimeThread *t) { const LargeInt *ip = static_cast<const LargeInt *>(ip); LargeInt offset = *ip; const LargeInt *funcBaseIP = ip + ((offset < 0) ? offset : -offset); precompiledFunction_t funcBase = reinterpret_cast<precompiledFunction_t>(reinterpret_cast<UInt8*>(NULL) + *funcBaseIP); int result = funcBase(ctx, objm, t, funcBaseIP + 1, objm->GetBuiltIns()->providerDictionary, t->timeout); if(result > 0) t->timeout = result; return result; }