search for: mret

Displaying 7 results from an estimated 7 matches for "mret".

Did you mean: iret
2010 Mar 31
2
Simplifying particular piece of code
Hello, everyone I have a piece of code that looks like this: mrets <- merge(mrets, BMM.SR=apply(mrets, 1, MyFunc, ret="BMM.AV120", stdev="BMM.SD120")) mrets <- merge(mrets, GM1.SR=apply(mrets, 1, MyFunc, ret="GM1.AV120", stdev="GM1.SD120")) mrets <- merge(mrets, IYC.SR=apply(mrets, 1, MyFunc, ret="IYC.AV120&qu...
2012 Mar 14
3
Help: problem converting character to numeric
...(with read.csv). Here is an example: yyyymm<- c("19860228", "19860331","19860430","19860531") id<-c("10000","10000","10000","10000") re<- c("C","0.25", "0.98", "1.34") mret<-data.frame(yyyymm, id, re) mret<-as.numeric(as.character(mret$re)) Error: (converted from warning) NAs introduced by coercion One of the column ("re" in the example above) has characters and numbers, but it should be treated a numeric column. Therefore, I want to eliminate the r...
2010 Mar 24
3
string problems in R
...rsp_fundno) y$key<-paste(y.crspfundno$crsp_fundno) v.fundno<-intersect(g$key,y$key) (using intersect to get crsp_fundno of G-style mutual funds which is still alive.) v.fundno What i need to do next is using the v.fundno I got to query from another table "Monthly_return" to get the mret coresponding to every v.fundno. I have only a basic idea of the code: for (i in 1:length(v.fundno)){ gmret<-sqlQuery(channel,"select mret from Monthly_returns where crsp_fundno = toString(v.fundno[i])") } gmret R gave me an error with undefined function "toString" I know ther...
2010 Mar 30
1
dataframe in loop
...p_fundno) y$key<-paste(y.crspfundno$crsp_fundno) v.fundno<-intersect(g$key,y$key) (using intersect to get crsp_fundno of G-style mutual funds which is still alive.) v.fundno What i need to do next is using the v.fundno I got to query from another table "Monthly_return" to get the mret coresponding to every v.fundno. I have only a basic idea of the code: for (i in 1:length(v.fundno)){ gmret<-sqlQuery(channel,paste("select mret from Monthly_returns where crsp_fundno =",test[i],'and caldt > 19900630 order by caldt')) } The loop doesn't work:( I realiz...
2017 Dec 21
2
How to implement lowerReturn for poring GlobalISel to RISCV?
...quot;Return value without a vreg");   MIRBuilder.buildInstr(BPF::RET);   return true; } But how to implement it for RISCV target? https://github.com/xiangzhai/llvm/commit/c49146edbbf655e97727e22e4a87a020fb8da6e5 Because there are separate trap return instructions[2] per privilege level: MRET, SRET, and URET. MRET is always provided, while SRET must be provided if supervisor mode is supported. URET is only provided if user-mode traps are supported. and David added RISCV privileged instructionsit[3], then merged into upstream, it might be more complex than ARM[4] please give me some...
2013 Apr 19
0
[LLVMdev] GSOC Proposals Questions
...many analysis will be used however many of them are already implemented in opt, so I guess the major part of the work will be generate code to synchronize/communicate between stages. - Implement trace formation/execution in MCJIT: The proposal will be to implement a trace formation technique (e.g: MRET[2]) in MCJIT, a translated code cache and a sequencing unit to control trace initialization/termination. I guess this is too much work to be done in three months however I've some experience working with MCJIT and DBTs also I plan to dedicate full time to get this done. - Profile-guided optimi...
2011 Apr 05
0
[LLVMdev] GSoC 2011: Building and Executing Traces on LLVM
...trace detection techniques. At the present moment LLVM does not build and execute traces using run- time information. We believe that a light-weight dynamic pro ling will be a valuable tool to improve LLVM performance. 3 Methodology In this project we will implement the Most Recent Executed Tail (MRET) [2] technique to nd and build traces. On the rst stage we will nd basic blocks that are targets of back edges (potential loop headers) and then instrument those basic blocks to count how many times it is executed. Therefore, if it reaches a threshold a function call (previously added to the bas...