Displaying 7 results from an estimated 7 matches for "ptri".
Did you mean:
ptr
2007 Oct 23
0
API for optimization with Simulated annealing
Dear list,
I was trying to use the R API for optimization method "Simulated annealing"
void samin(int n, double *x, double *Fmin, optimfn fn, int maxit,
int tmax, double temp, int trace, void *ex);
but I encountered the following problem:
The implementation of the function samin (as seen in src/main/optim.c)
passes its void * argument "ex" into the function
2020 Jul 26
2
[LAA] RtCheck on pointers of different address spaces.
...sets.
if (RtCheck.Pointers[i].DependencySetId ==
RtCheck.Pointers[j].DependencySetId)
continue;
// Only need to check pointers in the same alias set.
if (RtCheck.Pointers[i].AliasSetId != RtCheck.Pointers[j].AliasSetId)
continue;
Value *PtrI = RtCheck.Pointers[i].PointerValue;
Value *PtrJ = RtCheck.Pointers[j].PointerValue;
unsigned ASi = PtrI->getType()->getPointerAddressSpace();
unsigned ASj = PtrJ->getType()->getPointerAddressSpace();
if (ASi != ASj) {
LLVM_DEBUG(
dbgs(...
2007 Apr 13
1
Simulated annealing using optim()
I'm preparing some code to compute the optimal geometry of stressed
solids. The core of the calculations is the optimization of elastic energy
using the simulated annealing method implemented in the R optim() rutine.
I've defined a function to compute this "energy" scalar (the fn parameter
for optim) and prepared a list with the arrays defining the geometry and
the elastic
2020 Jul 26
2
[LAA] RtCheck on pointers of different address spaces.
...pendency sets.
if (RtCheck.Pointers[i].DependencySetId ==
RtCheck.Pointers[j].DependencySetId)
continue;
// Only need to check pointers in the same alias set.
if (RtCheck.Pointers[i].AliasSetId != RtCheck.Pointers[j].AliasSetId)
continue;
Value *PtrI = RtCheck.Pointers[i].PointerValue;
Value *PtrJ = RtCheck.Pointers[j].PointerValue;
unsigned ASi = PtrI->getType()->getPointerAddressSpace();
unsigned ASj = PtrJ->getType()->getPointerAddressSpace();
if (ASi != ASj) {
LLVM_DEBUG(
dbgs() <&...
2007 Aug 03
2
How to properly finalize external pointers?
...SET_VECTOR_ELT(ret,0,extPtr);
UNPROTECT(1);
return ret;
}
SEXP rindex_close(
SEXP obj
){
int i, n= 10;
SEXP ret, extPtr=VECTOR_ELT(obj, 0);
pINT p, ptr = R_ExternalPtrAddr(extPtr);
PROTECT(ret = allocVector(INTSXP, n));
p = INTEGER(ret);
for (i=0;i<n;i++){
Rprintf("ptri=%d\n",ptr[i]);
p[i] = ptr[i];
}
/* this does finalize immediately but at next garbage collection again
rindex_finalize(extPtr);
*/
/* this must not called otherwise the pointer is gone at garbage collection time
R_ClearExternalPtr(extPtr);
*/
/* this triggers the finaliz...
2002 Oct 21
3
Combinatorial Optimisation
Hi
I am looking to perform a discrete mean-variance optimisation, specifically to maximise the ratio of portfolio mean over portfolio standard deviation for a portfolio of several hundred stocks through discrete position size holdings in each stock, where all position sizes must be elements of a small finite set of integer amounts which include zero.
I don't think any of the standard R
2002 Oct 21
3
Combinatorial Optimisation
Hi
I am looking to perform a discrete mean-variance optimisation, specifically to maximise the ratio of portfolio mean over portfolio standard deviation for a portfolio of several hundred stocks through discrete position size holdings in each stock, where all position sizes must be elements of a small finite set of integer amounts which include zero.
I don't think any of the standard R