search for: funcit

Displaying 11 results from an estimated 11 matches for "funcit".

Did you mean: funci
2012 Jun 29
2
turning R expressions into functions?
...which uses system.time to determine which of a given list of R expressions executes fastest. To work around the limited resolution of system.time, I want to convert the given expressions into functions which execute the given expressions a fixed number of times. My current attempt is as follows: FuncIt <- function(k, expr) { k <- as.numeric(k) expr <- eval.parent(substitute(expr)) eval(substitute(function() { for (funcit.i in 1:k) { expr } })) } This works, but seems not very robust. My question: is there a better way of doing this? Here are some experiments. 1) good: If I r...
2009 Nov 02
2
How to execute a funcition which name is stored in a string?
Hi, everybody Is there any way to execute a function, which name is stored in a string. such as: a <- "ls()" foo(a) ## same as ls() itself. Or, to execute a R command, which is stored in a string such as: a <- "m1 <- matrix(1:9,3,3)" foo(a) ## same as the assignment itself
2009 Jun 25
0
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
On Thu, Jun 25, 2009 at 12:32 AM, ihusar<ihusar at fit.vutbr.cz> wrote: >                //now i need to create an instruction that represents a call to a intrinsic >                Function* FIntr = Intrinsic::getDeclaration(&M, Intrinsic::regread_i32); > >                // here it fails: void llvm::CallInst::init(llvm::Value*): >                //Assertion
2009 Jun 24
3
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
Hi everyone, I am trying to write a pass, that finds some instructions and replaces them with my intrinsics, but I am having problem understanding, how this should be done. Let's say I have this instruction: %tmp14 = load i32* getelementptr ([32 x i32]* @gpregs, i32 0, i64 28) and i need to read the load's operands and replace it by let's say: %tmp14 = call i32
2006 May 03
4
default values
...primary key, c1 text default f1(), ... cN text default fN() ); But if I use de lines @element = Element.new @element.save the values that element take are the nextval in the id field and nules in all the other fields. How can I get the defaults? (but without rewriting the funcitions f1,...,fN in the rails aplication, of course) Thaks -- Daniel H
2013 Sep 20
0
[LLVMdev] Does Mips resolve hazard in pre-ra-sched or post-ra-sched?
Hi, Akira, I found you maintain mips MipsSchedule.td. does it correct? in MipsSchedule.td, every InstrItinData only uses one InstrStage. there's no ByPass info out there. are you sure this reflects the real R4xxx/R5xxx processors. why IILoad uses funcition unit ALU? InstrItinData<IILoad , [InstrStage<3, [ALU]>]> for my previous question, I have new input after reading the code. pre-RA-sched is derived from ScheduleDAGSNodes, but post-RA-sched and mi-sched are both derived from ScheduleDAGInstrs.that means pre-RA-sched sc...
2008 Sep 05
5
PPTP Client Behind a Shorewall Firewall
Hi all, I´m running a server that frecuently needs to open a pptp session with a remote server outside my Company. This server is running behind a Shorewall firewall and I don´t find information in Shorewall web page because there is no information in the link http://www.shorewall.net/PPTP.htm#ClientsBehind Nowadays I can connect this server with the remote one but te session is closed after
2013 Sep 20
2
[LLVMdev] Does Mips resolve hazard in pre-ra-sched or post-ra-sched?
Akira, Thanks you for response. I understand Post-RA schedule make uses of scoreboardHazardRecognizer. But I found mips codes are good enough by default. basically, I can not easily eyeball any bubbles. I don't understand how they can do that without post-RA-sched. pre-ra-scheduler eg. (SelectionDAG/ScheduleDAGRRList.cpp) has little information and they can only schedule node in topology
2008 Sep 23
0
additional parameters in function called by tapply
...al3) b) calculation of the average of several years of the sums for step a I use tapply with the following call indices <- (list(year,spatial2,parameter) resultspatial <- tapply(value,indices,sum) for step b I use apply with the result of a and a function block_average block_average <- funcition(value,year,number_of_years_to_average) with the parameters value and years as vectors and number_of_years as integer. When I'm trying to skip the spatial aggregation, i.e. just do the block_averaging over years, I have the problem (AFIU the man page), that I can't provide the years vect...
2004 Aug 25
3
integrate function
Is possible to integrate this diferential equation: dN/dt = Nr(1-(N/K)) in R using the integrate() function? Or any other diferential equation? If yes, how? If no, anybody know any software on linux that make this? Inte Ronaldo -- O problema de ter os dois p??s bem firmes no ch??o ?? que voc?? n??o vai conseguir tirar as cal??as. --An??nimo -- |> // | \\
2013 Sep 25
1
[LLVMdev] Does Mips resolve hazard in pre-ra-sched or post-ra-sched?
...wrote: > Hi, Akira, > > I found you maintain mips MipsSchedule.td. does it correct? in > MipsSchedule.td, every InstrItinData only uses one InstrStage. there's no > ByPass info out there. > are you sure this reflects the real R4xxx/R5xxx processors. > > why IILoad uses funcition unit ALU? > InstrItinData<IILoad , [InstrStage<3, [ALU]>]> > > This means IILoad instructions use resource ALU for three cycles. I don't remember why only two functional units (ALU and IMULDIV) are defined and used in this .td file, but this would be incorre...