search for: functest

Displaying 4 results from an estimated 4 matches for "functest".

2010 Oct 08
5
saving object function
Ok so if I have a function: functest<-function(x){ a<-x+1 b<-x+2 c<-x+3 paste(a) paste(b) paste(c) } Now I know I can do cat(), or return() on one of them but if I was to run the function with any number, how could I create objects to save so I could do, I am wondering if I ha...
2000 Nov 13
1
DLL for calling Fortran subroutines
...es of my subroutines. Then, I use the R command library(test), where test is a directory located in the R library tree and which contains a R directory (with my R functions) and a libs directory (with my test.dll). Everything seems to be ok, but when I try the R command : is.loaded(symbol.For("functest")), R returns False. Furthermore, when I try to execute the R function which calls Fortran("functest",...) I've got the following message : "Error in .Fortran("functest",...) : C/Fortran function name not in load table". If someone has a solution to this pro...
2010 Oct 15
5
[LLVMdev] How do I find all memory allocations in an llvm ir code file?
I tried to compile this snippet of C++ code: void FuncTest() {     int* a = new int;     int* b = new int[2]; } using: clang test.cpp -S -emit-llvm -o - > test.llvm and obtained this: define void @_Z8FuncTestv() { entry:   %a = alloca i32*, align 4   %b = alloca i32*, align 4   %call = call noalias i8* @_Znwj(i32 4)   %0 = bitcast i8* %call to i32*...
2010 Oct 15
0
[LLVMdev] How do I find all memory allocations in an llvm ir code file?
...if a function is a memory allocator. I have not yet had enough time to implement such an analysis group, but if others think it's a good idea, feel free to write it. :) -- John T. On 10/15/10 6:37 AM, Theresia Hansson wrote: > I tried to compile this snippet of C++ code: > > void FuncTest() { > int* a = new int; > int* b = new int[2]; > } > > using: > > clang test.cpp -S -emit-llvm -o -> test.llvm > > and obtained this: > > define void @_Z8FuncTestv() { > entry: > %a = alloca i32*, align 4 > %b = alloca i32*, align 4 >...