search for: idx1

Displaying 20 results from an estimated 30 matches for "idx1".

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...
2013 Apr 05
0
[LLVMdev] A strange testing case of SROA
...y so the 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 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 i...
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 0, so in this e...
2016 May 09
2
C++ CreateConstGEP questions
...that the caller can supply the expected type, and get error checking or casting? Or choose to not supply the type and get whatever they get? But for CreateConstGEP2_32, there is only the variety with the type supplied: Value * CreateConstGEP2_32 (Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1, const Twine &Name="") For CreateConstGEP2_64, there is only the version with no Type supplied: Value * CreateConstGEP2_64 (Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name="") Same for CreateConstGEP1_64 -- no Type* parameter. Can anybody offer insigh...
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...
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
2015 Jun 11
2
[LLVMdev] Question about NoWrap flag for SCEVAddRecExpr
...sanjoy at playingwithpointers.com> wrote: > >> Base is treated as unsigned so 0xff…ff + 1 would be 0x100…00 > > This is the part I was missing, thanks for pointing out the FAQ. So > the infinitely precise address computed by a GEP is > > zext(Base) + sext(Idx0) + sext(Idx1) … ? Yes, that is the way I read it. >> 0x100…00 which would be out of bounds (sort of). > > Does this mean, for C++ programs of the form, > > for (int *I = array, *E = array + size; I != E; ++I) > ... > > the memory allocator has to guarantee that array cannot sp...
2011 Dec 09
0
[LLVMdev] GetElementPtr
On Thu, Dec 8, 2011 at 6:07 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > Eli, > >    Ok, thanks, this is a big help. So how can I use the TargetData (or get > the TargetData) without having a DAG? If you're writing a transformation pass, just write "getAnalysisIfAvailable<TargetData>()" to get a TargetData*. -Eli
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
...mment over 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://ll...
2011 Apr 18
1
Extract indices after comparing two vectors
...numeric vectors. Say, I have, A <- c(1,2,3,4) and A <- c(0,3,1,5) and we cmpare: > idx <- A<B So: > idx [1] FALSE TRUE FALSE TRUE Question 1: I would like to get a vector that stores the indices for entries of A such that this relationship is true. In this case, a vector idx1 < c(2,4), because the 2nd and 4th entries of A satisfy the conditions Question 2: I would like to know the maximum index of the entry in A for which the relationship is true. In this case, max_indx = 4, since the 4th entry of A is such. Could you please give me some hints? Thank you, -Chee...
2011 Dec 09
2
[LLVMdev] GetElementPtr
Eli, Ok, thanks, this is a big help. So how can I use the TargetData (or get the TargetData) without having a DAG? On Thu, Dec 8, 2011 at 3:45 PM, Eli Friedman <eli.friedman at gmail.com> wrote: > On Thu, Dec 8, 2011 at 3:29 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > > Ok, thanks, this makes sense. But there is no way to get the > SelectionDAG to > > do it
2015 Jun 11
2
[LLVMdev] Question about NoWrap flag for SCEVAddRecExpr
...; >>>> Base is treated as unsigned so 0xff…ff + 1 would be 0x100…00 >>> >>> This is the part I was missing, thanks for pointing out the FAQ. So >>> the infinitely precise address computed by a GEP is >>> >>> zext(Base) + sext(Idx0) + sext(Idx1) … ? >> >> Yes, that is the way I read it. >> >>>> 0x100…00 which would be out of bounds (sort of). >>> >>> Does this mean, for C++ programs of the form, >>> >>> for (int *I = array, *E = array + size; I != E; ++I) >>>...
2010 Apr 09
1
Rsge: recursive parallelization
In principle, I'd like to be able to do something like this: sge.parLapply(seq(10), function(x) parLapply(seq(x), function(x) x^2)) In practice, however, I have to resort to acrobatics like this: sge.options(sge.remove.files=FALSE) sge.options(sge.qsub.options='-cwd -V') sge.parLapply(seq(10), function(x) { sge.options(sge.save.global=TRUE)
2007 Jul 23
1
Error using Rd2dvi on OSX
...rom LaTeX ... /Library/Frameworks/R.framework/Resources/bin/Rd2dvi: line 333: pdflatex: command not found lstat(./makeindex) failed ... ./makeindex: No such file or directory Couldn't find input index file Rd2 nor Rd2.idx. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...] /Library/Frameworks/R.framework/Resources/bin/Rd2dvi: line 335: pdflatex: command not found /Library/Frameworks/R.framework/Resources/bin/Rd2dvi: line 337: pdflatex: command not found Saving output to 'Rd2.pdf' ... cp: .Rd2dvi28208/Rd2.pdf: No such file or directory Done
2007 Jun 05
0
[1048] trunk/wxruby2/samples/bigdemo/wxListCtrl_virtual.rbw: Fix broken path to Bitmap file for item image
...><span class="lines">@@ -17,7 +17,9 @@ </span><span class="cx"> @log = log </span><span class="cx"> </span><span class="cx"> @il = Wx::ImageList.new(16,16) </span><del>- @idx1 = @il.add(Wx::Bitmap.new("./icons/wxwin16x16.xpm")) </del><ins>+ bmp_file = File.join(File.dirname(__FILE__), "icons/wxwin16x16.xpm") + + @idx1 = @il.add(Wx::Bitmap.new(bmp_file)) </ins><span class="cx"> set_image_l...
2010 Oct 27
2
Why is cpu-to-node mapping different between Xen 4.0.2-rc1-pre and Xen 4.1-unstable?
...: (XEN) *** Serial input -> Xen (type ''CTRL-a'' three times to switch input to DOM0) (XEN) ''u'' pressed -> dumping numa info (now-0x4B:40CB2A11) (XEN) idx0 -> NODE0 start->0 size->1703936 (XEN) phys_to_nid(0000000000001000) -> 0 should be 0 (XEN) idx1 -> NODE1 start->1703936 size->1572863 (XEN) phys_to_nid(00000001a0001000) -> 1 should be 1 (XEN) CPU0 -> NODE0 (XEN) CPU1 -> NODE1 (XEN) CPU2 -> NODE0 (XEN) CPU3 -> NODE1 (XEN) CPU4 -> NODE0 (XEN) CPU5 -> NODE1 (XEN) CPU6 -> NODE0 (XEN) CPU7 -> NODE1 (XEN) CPU8 -...
2013 May 07
4
how to calculate the mean in a period of time?
Hi, Your question is still not clear. May be this helps: dat2<- read.table(text=" patient_id????? t???????? scores 1????????????????????? 0??????????????? 1.6 1????????????????????? 1??????????????? 2.6 1????????????????????? 2???????????????? 2.2 1????????????????????? 3???????????????? 1.8 2????????????????????? 0????????????????? 2.3 2?????????????????????? 2???????????????? 2.5
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