search for: idx2

Displaying 20 results from an estimated 21 matches for "idx2".

Did you mean: idx
2013 Apr 05
4
[LLVMdev] A strange testing case of SROA
Hi, Following is excerpted from dynamic-vector-gep.ll. The resulting "extractelement" seems to always return 0.0f regardless the value idx1 and idx2 is holding. Am I missing something here or there is something fishy take place? Thanks Shuxin 101 ; CHECK: test6 102 ; CHECK: insertelement <4 x float> zeroinitializer, float 1.000000e+00, i32 %idx1 103 ; CHECK: extractelement <4 x float> zeroinitializer, i32 %idx2 104 105 %vector.p...
2013 Apr 05
0
[LLVMdev] A strange testing case of SROA
...original bug is long gone. Thanks, Pete On Apr 5, 2013, at 11:57 AM, Shuxin Yang <shuxin.llvm at gmail.com> wrote: > Hi, > > Following is excerpted from dynamic-vector-gep.ll. > The resulting "extractelement" seems to always return 0.0f regardless the value idx1 and idx2 is holding. > Am I missing something here or there is something fishy take place? > > Thanks > Shuxin > > > 101 ; CHECK: test6 > 102 ; CHECK: insertelement <4 x float> zeroinitializer, float 1.000000e+00, i32 %idx1 > 103 ; CHECK: extractelement <4 x float>...
2010 Jul 30
2
Summing by index
...ch $Id # the result would take the form # Id, sum for each Id # Try using BY result<-by(DF$Data,INDICES=Data$Id,FUN=sum,na.rm=T) Error in names(IND) <- deparse(substitute(INDICES))[1L] : 'names' attribute [1] must be the same length as the vector [0] idx<-as.list(Data$Id) idx2<-list(1234,1234,1234,1234,1234,5436,5436,5436,7864,7864,7864,7864) result<-by(DF$Data,INDICES=idx,FUN=sum,na.rm=T) result [1] 215 result<-by(DF$Data,INDICES=idx2,FUN=sum,na.rm=T) Error in tapply(1L:12L, list(1234, 1234, 1234, 1234, 1234, 5436, 5436, : arguments must have same length &g...
2017 Sep 25
2
Sample of a subsample
...le only. *Additionally, "var1" should be an even number.* So sampleNo should be 0 for cases that were not drawn at all, 1 for cases that belong to the first sample and 2 for cases belonging to the second sample (= sampleNo equals 0 and var1 is even). I was trying to solve it like this: idx2<-data$var1%%2 & data$sampleNo==0 sample(data[idx2,], size=10, replace=F) But how can I set sampleNo to 2? Thank you very much for your help! David [[alternative HTML version deleted]]
2017 Sep 25
1
Sample of a subsample
...a reply when Bert responded. His answer is good and his comment to use the name 'dat' rather than 'data' is instructive. I am providing my suggestion as well because I think it may address what was causing you some confusion (mainly to use "which", but also the missing !) idx2 <- sample( which( (!data$var1%%2) & data$sampleNo==0 ), size=10, replace=F) data[idx2,]$sampleNo <- 2 Eric On Mon, Sep 25, 2017 at 9:03 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > For personal aesthetic reasons, I changed the name "data" to "dat"...
2001 Mar 04
1
bubblebabble patch
...unsigned int rounds, idx, retval_idx, seed; + char *retval; + + rounds = (dgst_raw_len / 2) + 1; + + retval = xmalloc(sizeof(char)*(rounds*6)); + + seed = 1; + + retval_idx = 0; + + retval[retval_idx++] = 'x'; + + for (idx=0;idx<rounds;idx++) { + + unsigned int idx0, idx1, idx2, idx3, idx4; + + if ((idx + 1 < rounds) || (dgst_raw_len % 2 != 0)) { + + idx0 = (((((unsigned int)(dgst_raw[2*idx])) >> 6) & 3) + seed) % 6; + idx1 = (((unsigned int)(dgst_raw[2*idx])) >> 2) & 15; + idx2 = ((((unsigned int)(dgst_raw[2*idx])) & 3) + (seed / 6)) % 6...
2015 Jun 26
6
[LLVMdev] Deriving undefined behavior from nsw/inbounds/poison for scalar evolution
*** Summary I'd like to propose (and implement) functionality in LLVM to determine when a poison value from an instruction is guaranteed to produce undefined behavior. I want to use that to improve handling of nsw, inbounds etc. flags in scalar evolution and LSR. I imagine that there would be other uses for it. I'd like feedback on this idea before I proceed with it. *** Details Poison
2017 Sep 25
0
Sample of a subsample
...ot; should be an even number.* > > So sampleNo should be 0 for cases that were not drawn at all, 1 for cases > that belong to the first sample and 2 for cases belonging to the second > sample (= sampleNo equals 0 and var1 is even). > > I was trying to solve it like this: > > idx2<-data$var1%%2 & data$sampleNo==0 > sample(data[idx2,], size=10, replace=F) > > But how can I set sampleNo to 2? > > > Thank you very much for your help! > > David > > [[alternative HTML version deleted]] > > ________________________________________...
2013 Apr 06
0
[LLVMdev] A strange testing case of SROA
Hi Shuxin, > Following is excerpted from dynamic-vector-gep.ll. > The resulting "extractelement" seems to always return 0.0f regardless the value > idx1 and idx2 is holding. > Am I missing something here or there is something fishy take place? maybe this is the same as PR15674. Ciao, Duncan.
2013 Apr 06
1
[LLVMdev] A strange testing case of SROA
...r there and close it. Thank you again! Shuxin On 4/6/13 2:55 AM, Duncan Sands wrote: > Hi Shuxin, > >> Following is excerpted from dynamic-vector-gep.ll. >> The resulting "extractelement" seems to always return 0.0f regardless >> the value >> idx1 and idx2 is holding. >> Am I missing something here or there is something fishy take place? > > maybe this is the same as PR15674. > > Ciao, Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiu...
2005 Jan 28
3
avoiding loops
Hi again, thanks a lot for the quick answer. I just forgot the comma, always these stupid mistakes... Anyways, as I said before, I have two data.frames containing about 1000 rows and I would like to avoid looping through all of them... In each data.frame are coordinates (x,y,z), so every row is giving the information on one single point. I would like to calculate the distance from each point
2005 Feb 02
1
[LLVMdev] RE: Question about Global Variable
...this case. The correct one should be as the following, GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx, const std::string &Name = "", Instruction *InsertBefore =0); GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx, // or Idx1, Idx2 const std::string &Name, BasicBlock *InsertAtEnd); How could I create the fourth IR ? Thanks %tmp.35 = getelementptr [3 x sbyte*]* %pGVars, int 0, int 0 ; <sbyte**> [#uses=1] %tmp.36 = load sbyte** %tmp.35 ; <sbyte*> [#uses=1]...
2003 Feb 21
2
how to chage values in data frame to NA iside a function
Dear all I have a function in which I would like to change some values to NA according to some condition. dropout<-function(y, nahr=FALSE,...) { <some stuff for computing an index> if (nahr) y[index]<<-NA invisible(index) } in case y is a vector all works OK but if it is a part of data frame by calling dropout(df$y) or dropout(df[,number]) no change is done. Please can you
2013 Jul 22
4
How to split two levels several times?
Hi, I have a small problem with the function split() and would appreciate your help. I have a table called ?XXX? with 2 columns and 49 rows. The 49 rows belong to 8 different levels (electrode1, ...,electrode8). I want to split the table always at the row where ?electrode1? starts again so that I can export 7 individual dataframes (numbered ?dataframe1? to ?dataframe7?) which contain always
2011 Dec 12
0
[LLVMdev] GetElementPtr
On Mon, Dec 12, 2011 at 3:54 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > For the gep: > > %idx1 = getelementptr i32* %MyVar, i32 0 > > i32* is the type that MyVar is pointing to and i32 is the type of the offset > value, or what? If it's the type of offset value, then > the size of the pointer shouldn't be less than i32, correct? > > > The index is
2011 Jul 13
1
Feature request: Determining source index of xapian-compact DatabaseError exception
Greets, When merging lots of subindexes in batches like so: xapian-compact -m idx1 idx2... dstidx Errors such as: xapian-compact: DatabaseError: Error reading block 0: got end of file present a problem since it does not provide the offending path name (of the broken index) for easy identification/removal in automated/batch scenarios (the way DatabaseOpeningError:.... does, eg). Th...
2011 Aug 26
2
eRm/raschsampler error message
...e a reasonably large dataset for this type of exercise (110 items, 248 persons). I run: > allb2=as.matrix(allb) > rsample <- rsampler(allb2, ctr) > t102<-NPtest(rsample, method="T10") #global test, subgroup inv and receive error message as follows. "Error in m[idx1, idx2] <- 1 : subscript out of bounds" Using the same code for a different dataset does not cause this problem. Any suggestions much appreciated! (ctr spec: burn_in = 100 n_eff = 1000 step = 16 seed = 0 tfixed = FALSE ) -- View this message in con...
2015 Jan 29
0
mdbox: Broken virtual size for mail UID ...
...he messages in the m.* files have the GUID embedded, nothing will be lost. Is that correct? To create proper assessment of the damage, I need to know a bit more: 1. In the script on line 43, the comment says: # end of metadata block missing, finish the previous mail That seems to be wrong, since idx2!=-1 and state==STATE_BODY on that line, while I understand it should be -1 and STATE_META if we were still reading the metadata block. I guess it should be something like: # still in data block, finish the previous mail 2. Line 47 reads: # truncated / broken data? just keep writing to previous f...
2011 Dec 12
2
[LLVMdev] GetElementPtr
For the gep: %idx1 = getelementptr i32* %MyVar, i32 0 i32* is the type that MyVar is pointing to and i32 is the type of the offset value, or what? If it's the type of offset value, then the size of the pointer shouldn't be less than i32, correct? The index is 0, so in this example, the address computation is idx1 = &MyVar+0. What I want to know is the size in bits of the values
2014 Sep 29
0
Imap: Panic: UID 13737 lost unexpectedly from INBOX
...sync_flags=<optimized out>, bbox=0x26071f0, ctx=0x261f200) at virtual-sync.c:975 sync_rec = {seq1 = 5, seq2 = 7, type = MAILBOX_SYNC_TYPE_FLAGS} idx1 = 5 vuid = <optimized out> sync_ctx = 0x268a640 sync_status = {sync_delayed_expunges = 1} idx2 = 11 vseq = 1250 #7 virtual_sync_backend_box (bbox=0x26071f0, ctx=0x261f200) at virtual-sync.c:1106 status = {messages = 0, recent = 0, unseen = 3491983296, uidvalidity = 32532, uidnext = 0, first_unseen_seq = 0, first_recent_uid = 3456139202, last_cached_seq = 32532, highest_modse...