search for: loopextract

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

Did you mean: loopextractor
2011 Sep 13
2
How to use a variable after $ ($x) for subscripting a list, How to source from a character object (source(x))
...i.e. as an object named "listResult" with the following form: [[a]] [1] [2] [3] [4] [5] [[b]] [1] [2] [3] [4] [5] [[c]] [1] [2] [3] [4] [5] where levels=c(a,b,c) I'd like to extract a data.frame like a [2] b [2] c [2] What I tried, is a function like this: library(foreach) loopExtract <- function(input) { foreach(i=1:length(levels)) %do% {listResult[[i]]$input} ... where the name of the variable [2] is meant to be the input. Unfortunately it turned out, that the "input"-variable after the $ is not substituted as expected. Subscripting the list with a variable afte...
2007 Dec 15
1
[LLVMdev] LLVM Source-to-Source transformation
...formation. My requirement is that I require a source to source transformation. I need to parse the given program and look for loops. Then I need to create another source file where I can use this source information like the iteration bounds and the loop body into the new file. I was looking at the LoopExtract pass in LLVM passes. However, it enables to extract only loop body. I need some more information like variables used and array dimension in loop body and convert it to source level. Can this be done using llvm? Can I get some pointers on this. My problem can be analogous viewed as adding OpenMP pr...