This function will take a data.frame with external pointers (like a result from profitBenchmark
) and convert the pointers to strings so that the can be printed without errors.
profitBenchmarkResultStripPointers(dataframe, colnames=as.vector(
outer(c("env","convolver"),c("single","double"),paste,sep="_")))
A data.frame with external pointers, such as a benchmarking result returned from profitBenchmark
.
Character or nunmeric vector of the names or indices of columns to convert.
The same data.frame given in dataframe with external pointers converted to strings.
# NOT RUN {
openclenvs = profitGetOpenCLEnvs(make.envs=TRUE)
print(profitBenchmarkResultStripPointers(openclenvs))
img = profitMakeGaussianPSF()
bench=profitBenchmark(img, psf=img, nbench=1L, methods=profitAvailableConvolvers())
print(profitBenchmarkResultStripPointers(bench$result)[
c("name","env_name","version","dev_name",paste0("tinms.mean_",c("single","double")))])
# }
Run the code above in your browser using DataLab