search for: preassign

Displaying 8 results from an estimated 8 matches for "preassign".

Did you mean: reassign
2014 Jan 11
3
[LLVMdev] Possible error in docs.
http://llvm.org/docs/CodeGenerator.html#machine-code-description-classes Section starting: Fixed (preassigned) registers It talks about converting: define i32 @test(i32 %X, i32 %Y) { %Z = udiv i32 %X, %Y ret i32 %Z } into ;; X is in EAX, Y is in ECX mov %EAX, %EDX sar %EDX, 31 idiv %ECX ret BUT, where does the "sar" come from? Kind Regards James
2009 Mar 30
1
List assignment in a while loop and timing
...and I loop, reading each key-value pair using rhsqnextKVR. If this returns NULL, we switch to the next file and if this returns null we break. If I comment out line A1, it takes 39 seconds on a quad core intel with 16GB ram running R-2.8 If I include the assignment A1 it takes ~85 seconds. I have preassigned the list in line A0, so I'm guessing there is no resizing going on, so why does the time increase so much? Thank you for your time. Regards Saptarshi ==code== rdr <- rhsqreader("~/tmp/pp",local=T,pattern="^p") rdr <- rhsqstart(rdr) i <- 1; h=as.list(rep(1,1e6))...
2008 Jun 25
1
LDA on pre-assigned training and testing data sets
Dear r-help I am trying to run LDA on a training data set, and test it on another data set with the same variables. I found examples using crossvalidation, and using training and testing data sets set up with sample, but not when they are preassigned. Here is what I tried # FIRST SET UP A DATAFRAME WITH ALL THE DATA AND CREATE NEW VARIABLES traintest1 <- arnaudnognod1[arnaudnognod1$DISC_USE1 == 1.01|arnaudnognod1$DISC_USE1 == 1.03|arnaudnognod1$DISC_USE1 == 1.04 |arnaudnognod1$DISC_USE1 == 1.02|arnaudnognod1$DISC_USE1 == 1.05|arnaudno...
2003 Sep 22
1
Data frame from list of lists
...1 2 b 2003-09-22 02:08:44 12 3 c 2003-09-22 02:08:44 13 4 d 2003-09-22 02:08:44 Which is what I want (bar the rownames). The problem is that this can be very slow, particularly the last rbind step, when I have a large data set (e.g. 5000 rows x20 cols). I thought that one improvement might be to preassign the data frame since I know how big it should be and then make assignments row by row. But it turns out that I can't then assign rows to the data frame one at a time - I get errors because factor levels don't exist e.g.: df[5:10,]=df[4,] for (i in 5:10){ df[i,]=as.data.frame(myfun...
2009 Sep 01
3
data frame
HI, R user, I generate the vectors with the same length. I want to put each vector into each column of data frame. Why it doesnt work`? rm<-data.frame() for(a in 1:6){ rm[,a]<-getmeasure(p1,a,speech) } thanks a lot Tammy _________________________________________________________________ Share your memories online with anyone you want.
2010 Jul 09
6
two PDCs
Hello, I have a PDC with master ldap backend and a BDC with slave ldap backend (both are SaMBa 3.2 on Debian Lenny). I want to install an additional SaMBa server on an another site (on Debian Squeeze). The two sites is connected with VPN (on not so reliable ADSL lines). I read an interesting network scenario in the Samba Guide chapter 6: theoretically it is possible to install one PDC on both
2014 Dec 05
9
[LLVMdev] Future plans for GC in LLVM
Now that the statepoint changes have landed, I wanted to start a discussion about what's next for GC support in LLVM. I'm going to sketch out a strawman proposal, but I'm not set on any of this. I mostly just want to draw interested parties out of the woodwork. :) Overall Direction: In the short term, my intent is to preserve the functionality of the existing code, but migrate
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...and I loop, reading each key-value pair using rhsqnextKVR. If this returns NULL, we switch to the next file and if this returns null we break. If I comment out line A1, it takes 39 seconds on a quad core intel with 16GB ram running R-2.8 If I include the assignment A1 it takes ~85 seconds. I have preassigned the list in line A0, so I'm guessing there is no resizing going on, so why does the time increase so much? Thank you for your time. Regards Saptarshi ==code== rdr <- rhsqreader("~/tmp/pp",local=T,pattern="^p") rdr <- rhsqstart(rdr) i <- 1; h=as.list(rep(1,1e6))...