search for: xminusy

Displaying 2 results from an estimated 2 matches for "xminusy".

2007 Nov 15
1
Nested SEXP functions
...ts. Here is what I am essentially trying to accomplish when looking at the Gaussian kernel: l(beta) = (y-X*beta)^T V^{-1} (y-X*beta) Now in order to accomplish this, I wrote various linear algebra subroutines to handle the R objects, we'll call this: SEXP XtimesY(SEXP X,SEXP Y); // X*Y SEXP XminusY(SEXP X,SEXP Y); // X-Y SEXP tX(SEXP X); // X^T SEXP mycholinv(SEXP V); // Use cholesky decomposition for inverse Now, what I'm noticing is that if I call each routine individually such as: pt1=XtimesY(X,beta); // X*beta pt2=Xminus(Y,pt1); // Y-X*beta pt3=tX(pt2); // (Y-X*beta)^T pt4=mycholinv...
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...der.CreateSub(y, x, "tmp"); std::vector<Value*> args1; args1.push_back(x); args1.push_back(yMinusX); Value* recur_1 = builder.CreateCall(gcd, args1.begin(), args1.end(), "tmp"); builder.CreateRet(recur_1); builder.SetInsertPoint(cond_false_2); Value* xMinusY = builder.CreateSub(x, y, "tmp"); std::vector<Value*> args2; args2.push_back(xMinusY); args2.push_back(y); Value* recur_2 = builder.CreateCall(gcd, args2.begin(), args2.end(), "tmp"); builder.CreateRet(recur_2); return mod; } --------------------------...