search for: selvec

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

Did you mean: selves
2016 Apr 02
0
apply mean function to a subset of data
Hi Pedro, This may not be much of an improvement, but it was a challenge. selvec<-as.vector(matrix(c(nsel,unlist(by(toy$diam,toy$group,length))-nsel), ncol=2,byrow=TRUE)) TFvec<-rep(c(TRUE,FALSE),length.out=length(selvec)) toynsel<-rep(TFvec,selvec) by(toy[toynsel,]$diam,toy[toynsel,]$group,mean) Jim On 4/3/16, Pedro Mardones <mardones.p at gmail.com> wrote: &...
2016 Apr 03
1
apply mean function to a subset of data
...n Behalf Of Jim Lemon Sent: Saturday, April 2, 2016 6:14 PM To: Pedro Mardones <mardones.p at gmail.com> Cc: r-help mailing list <r-help at r-project.org> Subject: Re: [R] apply mean function to a subset of data Hi Pedro, This may not be much of an improvement, but it was a challenge. selvec<-as.vector(matrix(c(nsel,unlist(by(toy$diam,toy$group,length))-nsel), ncol=2,byrow=TRUE)) TFvec<-rep(c(TRUE,FALSE),length.out=length(selvec)) toynsel<-rep(TFvec,selvec) by(toy[toynsel,]$diam,toy[toynsel,]$group,mean) Jim On 4/3/16, Pedro Mardones <mardones.p at gmail.com> wrote: &...
2016 Apr 02
3
apply mean function to a subset of data
Dear all; This must have a rather simple answer but haven't been able to figure it out: I have a data frame with say 2 groups (group 1 & 2). I want to select from group 1 say "n" rows and calculate the mean; then select "m" rows from group 2 and calculate the mean as well. So far I've been using a for loop for doing it but when it comes to a large data set is
2016 Jul 22
2
Hitting assertion failure related to vectorization + instcombine
...%x) { > %cmp = icmp slt <2 x i32> %x, zeroinitializer > %xor = xor <2 x i32> %x, <i32 2147483648, i32 2147483648> > %x.xor = select <2 x i1> %cmp, <2 x i32> %x, <2 x i32> %xor > ret <2 x i32> %x.xor > } > > $ ./opt -instcombine selvec.ll -S > Assertion failed: (BitWidth == RHS.BitWidth && "Comparison requires equal > bit widths"), function operator==, file > /Users/spatel/myllvm/llvm/include/llvm/ADT/APInt.h, line 983. > > I should have a patch up for review shortly. > > > On Wed, Jul 20...
2016 Jul 25
2
Hitting assertion failure related to vectorization + instcombine
...initializer >> > %xor = xor <2 x i32> %x, <i32 2147483648, i32 2147483648> >> > %x.xor = select <2 x i1> %cmp, <2 x i32> %x, <2 x i32> %xor >> > ret <2 x i32> %x.xor >> > } >> > >> > $ ./opt -instcombine selvec.ll -S >> > Assertion failed: (BitWidth == RHS.BitWidth && "Comparison requires >> > equal >> > bit widths"), function operator==, file >> > /Users/spatel/myllvm/llvm/include/llvm/ADT/APInt.h, line 983. >> > >> > I should have a...
2016 Jul 27
0
Hitting assertion failure related to vectorization + instcombine
...> %xor = xor <2 x i32> %x, <i32 2147483648, i32 2147483648> >>> > %x.xor = select <2 x i1> %cmp, <2 x i32> %x, <2 x i32> %xor >>> > ret <2 x i32> %x.xor >>> > } >>> > >>> > $ ./opt -instcombine selvec.ll -S >>> > Assertion failed: (BitWidth == RHS.BitWidth && "Comparison requires >>> > equal >>> > bit widths"), function operator==, file >>> > /Users/spatel/myllvm/llvm/include/llvm/ADT/APInt.h, line 983. >>> > >>&...
2016 Jul 28
1
Hitting assertion failure related to vectorization + instcombine
...x i32> %x, <i32 2147483648, i32 2147483648> > >>> > %x.xor = select <2 x i1> %cmp, <2 x i32> %x, <2 x i32> %xor > >>> > ret <2 x i32> %x.xor > >>> > } > >>> > > >>> > $ ./opt -instcombine selvec.ll -S > >>> > Assertion failed: (BitWidth == RHS.BitWidth && "Comparison requires > >>> > equal > >>> > bit widths"), function operator==, file > >>> > /Users/spatel/myllvm/llvm/include/llvm/ADT/APInt.h, line 983. > &g...
2016 Jul 20
2
Hitting assertion failure related to vectorization + instcombine
Thanks for notifying me. Yes, this was a recent change. Taking a look now. On Wed, Jul 20, 2016 at 1:49 PM, Michael Kuperstein <mkuper at google.com> wrote: > +Sanjay, who touched this last. :-) > > On Wed, Jul 20, 2016 at 12:44 PM, Ismail Badawi (ibadawi) via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi folks, >> >> I'm hitting the