search for: r_alloc_test

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

2012 May 11
0
[patch] Behavior of .C() and .Fortran() when given double(0) or integer(0) (repost).
...t;) dyn.load("dotC_NULL.so") run_test<-function(desc,Cfun,args){ cat(desc,"\n") out <- do.call(".C",c(list(Cfun),args)) cat("Return value: ") print(out[[1]]) cat("\n") } run_test("R_alloc asked to allocate 1 byte:", "R_alloc_test",list(nbytes=as.integer(1))) run_test("R_alloc asked to allocate 0 bytes:", "R_alloc_test",list(nbytes=as.integer(0))) run_test("Integer vector with 1 element:", "dotC_NULL",list(arg=integer(1))) run_test("Integer vector with 0 elements:", &qu...
2012 May 04
4
[patch] Behavior of .C() and .Fortran() when given double(0) or integer(0).
...t;) dyn.load("dotC_NULL.so") run_test<-function(desc,Cfun,args){ cat(desc,"\n") out <- do.call(".C",c(list(Cfun),args)) cat("Return value: ") print(out[[1]]) cat("\n") } run_test("R_alloc asked to allocate 1 byte:", "R_alloc_test",list(nbytes=as.integer(1))) run_test("R_alloc asked to allocate 0 bytes:", "R_alloc_test",list(nbytes=as.integer(0))) run_test("Integer vector with 1 element:", "dotC_NULL",list(arg=integer(1))) run_test("Integer vector with 0 elements:", &qu...