Displaying 3 results from an estimated 3 matches for "exfunc".
Did you mean:
xfunc
2004 Dec 09
1
[LLVMdev] Question about insert call func with pionter parameter
Hi,
I got a problem when I am trying to insert a call function with pointer arguments.
The function C proto-type is the following,
void stat_func(char *);
>ConstantArray *Cstr = dyn_cast<ConstantArray>(gI->getInitializer());
......
>Function *exFunc = M->getOrInsertFunction("stat_func", Type::VoidTy, PointerType::get(Type::SByteTy),0);
>std::vector<Value*> Args(1);
>Args[0] = constantArray::get(Cstr->getAsString());
>CallInst *call = new CallInst(exFunc, Args,"",InsertPos);
If the code look like the a...
2023 Feb 23
1
`dendrapply` Enhancements
...ing all the unit tests in `dendextend`, which comprises a lot of applications of `dendrapply`.
The postorder traversal would be a significant new functionality to dendrapply, as it would allow for functions that use the child nodes to correctly execute. A toy example of this is something like:
```
exFunc <- function(x){
attr(x, 'newA') <- 'a'
if(is.null(attr(x, 'leaf'))){
cat(attr(x[[1]], 'newA'), attr(x[[2]], 'newA'))
cat('\n')
}
x
})
dendrapply(dend, exFunc)
```
With the current version of dendrapply, this prints nothing, but...
2008 Sep 19
0
panel data analysis possible with mle2 (bbmle)?
...-0.58, -0.54, -0.49, -0.39, -0.31, 0.02, 0.07, 0.087,
0.138, 0.132, 0.244, 0.354, 0.421, 0.606, 0.74, 0.818, 1.048,
1.229, -1.17, -1.159, -1.16, -1.143, -1.137, -1.085, -1.028,
-0.965, -0.919, -0.942, -0.902, -0.828, -0.79)
################this is the function that is called by mle2
exfunc <- function(c1,c2,c3,cs1,cs2,cs3,ic1,ic2,ic3,cc1,cc2,cc3,alstar,beta1){
x<-matrix(0,years*cross,3)
x[,1] <- 1
x[,2] <- ra
x[,3] <- sa
coeffs <- vector(length=3)
coeffs[1] <- c1
coeffs[2] <- c2
coeffs[3] <- c3
csp <- rep(c(cs1,cs2,cs3),each=years)
e1...