search for: tmp2

Displaying 20 results from an estimated 548 matches for "tmp2".

Did you mean: tmp
2015 Aug 05
0
[PATCH 7/8] Add Neon intrinsics for Silk noise shape feedback loop.
...rr_Q10, q1_Q0, q1_Q10, q2_Q10, rd1_Q20, rd2_Q20; opus_int32 exc_Q14, LPC_exc_Q14, xq_Q14, Gain_Q10; @@ -248,21 +248,7 @@ void silk_noise_shape_quantizer( /* Noise shape feedback */ silk_assert( ( shapingLPCOrder & 1 ) == 0 ); /* check that order is even */ - tmp2 = psLPC_Q14[ 0 ]; - tmp1 = NSQ->sAR2_Q14[ 0 ]; - NSQ->sAR2_Q14[ 0 ] = tmp2; - n_AR_Q12 = silk_RSHIFT( shapingLPCOrder, 1 ); - n_AR_Q12 = silk_SMLAWB( n_AR_Q12, tmp2, AR_shp_Q13[ 0 ] ); - for( j = 2; j < shapingLPCOrder; j += 2 ) { - tmp2 = NSQ-...
2015 Nov 21
0
[Aarch64 v2 06/18] Add Neon intrinsics for Silk noise shape feedback loop.
...rr_Q10, q1_Q0, q1_Q10, q2_Q10, rd1_Q20, rd2_Q20; opus_int32 exc_Q14, LPC_exc_Q14, xq_Q14, Gain_Q10; @@ -248,21 +248,7 @@ void silk_noise_shape_quantizer( /* Noise shape feedback */ silk_assert( ( shapingLPCOrder & 1 ) == 0 ); /* check that order is even */ - tmp2 = psLPC_Q14[ 0 ]; - tmp1 = NSQ->sAR2_Q14[ 0 ]; - NSQ->sAR2_Q14[ 0 ] = tmp2; - n_AR_Q12 = silk_RSHIFT( shapingLPCOrder, 1 ); - n_AR_Q12 = silk_SMLAWB( n_AR_Q12, tmp2, AR_shp_Q13[ 0 ] ); - for( j = 2; j < shapingLPCOrder; j += 2 ) { - tmp2 = NSQ-...
2005 Mar 10
2
Question regarding mosaicplot
I tried this : > mosaicplot(stoc ~ q9r + segca,data=tmp2,color=T) : works fine. And now, this : > mosaicplot(stoc ~ q9r + segca, data=tmp2, color=T, main="Big title") Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type I'm probably stupid and missed something simple in the...
2006 Mar 06
1
Sort problem in merge()
...with sort. Can someone please point me to my error. Here is the example. ## I have dataframes, first one with factor and second one with factor ## and integer > tmp1 <- data.frame(col1 = factor(c("A", "A", "C", "C", "0", "0"))) > tmp2 <- data.frame(col1 = factor(c("C", "D", "E", "F")), col2 = 1:4) > tmp1 col1 1 A 2 A 3 C 4 C 5 0 6 0 > tmp2 col1 col2 1 C 1 2 D 2 3 E 3 4 F 4 ## Now merge them > (tmp12 <- merge(tmp1, tmp2, by.x = &...
2010 Sep 20
5
Sorting and subsetting
...gl(2,20), foo = rnorm(40)) And further assume it is sorted by index and then by the variable foo. tmp <- tmp[order(tmp$index, tmp$foo) , ] Now, I want to grab the first N rows of tmp for each index. In the end, what I want is the data frame 'result' tmp1 <- subset(tmp, index == 1) tmp2 <- subset(tmp, index == 2) tmp1 <- tmp1[1:5,] tmp2 <- tmp2[1:5,] result <- rbind(tmp1, tmp2) Does anyone see a way to subset and subsequently bind without a loop? Harold [[alternative HTML version deleted]]
2008 Jun 28
1
mapping one redundant index to another redundant index
Dear R users, I have a simple problem I cannot solve, but I sure you can help. I have two vector, let say > tmp1 <- c("a", "a", "b", "c") > tmp2 <- c("a", "a", "b", "c", "c", "d") and I want to create a matrix of two column for which I have all the combinations of the same character, let say like this > tmp3 tmp1 tmp2 [1,] "a" "a" [2,] "a&quot...
2007 Dec 19
0
[LLVMdev] JIT Stub Problem
...r if I'm doing something incorrectly. I've got a long complicated function with the following basic blocks at the end of it (The complete .ll file is attached): falseBlock: ; preds = %__exp.exit340 ret int 617 codeRepl: ; preds = %__exp.exit340 %tmp2.i.i = add int %x, 1 ; <int> [#uses=1] store int %tmp2.i.i, int* %tmp2.loc call void %test3_trueBlock_trueBlock.ret.exitStub_newFuncRoot.ce_trueBlock.ret.exitStub.ret.exitStub.ret.exitStub.ret7( ) %tmp2.reload = load int* %tmp2.loc ; <int...
2017 Oct 30
1
An iterative function
...ist(a=a, b=b, c=c)) } ##both m1 and m2 are matrix with 3 rows and same number of columns f <- function(m1, m2){ n <- dim(m1)[2] tmp1 <- f0(m1[1,], m2[1,]) S2 <- which(m1[1,] > tmp1$a) if (length(S2) == 0){ t1 <- c(tmp1$b, 0, 0) t2 <- c(tmp1$c, 0, 0)} else { tmp2 <- f0(m1[2,S2], m2[2, (n-length(S2)+1):n]) S3 <- S2[which(m2[2, S2] > tmp2$a)] if (length(S3) == 0) { t1 <- c(tmp1$b, tmp2$b, 0) t2 <- c(tmp1$c, tmp2$c, 0)} else { tmp3 <- f0(m1[3,S3], m2[3, (n-length(S3)+1):n]) t1 <- c(tmp1$b, tmp2$b, tmp3$...
2007 Jan 17
1
tapply, data.frame problem
Hi R-users, I'm quite new to R and trying to learn the basics. I have a following problem concerning the convertion of array object into data frame. I have made following data sets tmp1 <- rnorm(100) tmp2 <- gl(10,2,length=100) tmp3 <- as.data.frame(cbind(tmp1,tmp2)) tmp3.sum <- tapply(tmp3$tmp1,tmp3$tmp2,sum) tmp3.sum <- as.data.frame(tapply(tmp1,tmp2,sum)) and I want the levels from tmp2 be shown as a column in the data.frame, not as row name as it now does. To put it in another way, a...
2003 Mar 04
3
question on latticeParseFormula (PR#2602)
This feels like inconsistent behavior. latticeParseFormula works the way I anticipated for factor, but not for ordered. I want the behavior I see with tmp2, but not with tmp. My next step is to use the right.name to isolate the tmp2[,c("a","b")] columns. tmp <- data.frame(y=(1:12)+.1, a=factor(rep(1:3,4)), b=ordered(rep(1:4, c(3,3,3,3)))) latticeParseFormula(as.formula(y ~ a + b), data=tmp)...
2013 May 30
3
[LLVMdev] Expected behavior of calling bitcasted functions?
...alias_f32 = alias bitcast (i32 (i32)* @func_i32 to float (float)*) define internal i32 @func_i32(i32 %v) noinline nounwind { entry: ret i32 %v } define void @bitcast_alias_scalar(float* noalias %source, float* noalias %dest) nounwind { entry: %arrayidx = getelementptr float* %source, i32 0 %tmp2 = load float* %arrayidx, align 8 %call = call float @alias_f32(float %tmp2) nounwind %arrayidx8 = getelementptr float* %dest, i32 0 store float %call, float* %arrayidx8, align 8 ret void } If you run opt -instcombine on this, this transforms into define void @bitcast_alias_scalar(float* no...
2013 Oct 04
3
[Bug 10182] New: Deleted file not shown in logfile (--log-file) unless out-format option is specified
...ior where deleted files won't be reported in the logfile specified with "--log-file" option unless the "--out-format" (which is related to the *output format* as stated in the documentation) is specified. To reproduce the bug simply run: ### no format option mkdir tmp1 tmp2 touch tmp1/test rsync -r --delete --log-file=transfer.log tmp1/ tmp2 cat transfer.log # 2013/10/04 12:57:17 [20413] building file list # 2013/10/04 12:57:17 [20413] >f+++++++++ test # 2013/10/04 12:57:17 [20413] sent 76 bytes received 32 bytes total size 0 rm transfer.log tmp1/test...
2010 Sep 10
1
[LLVMdev] Missing Optimization Opportunities
...right now, and I found "opt -std-compile-opts" has missed some opportunities for optimization: define void @spa.main() readonly { entry: %tmp = load i32* @dst-ip ; <i32> [#uses=3] %tmp1 = and i32 %tmp, -16777216 ; <i32> [#uses=1] %tmp2 = icmp eq i32 %tmp1, 167772160 ; <i1> [#uses=2] %tmp3 = and i32 %tmp, -65536 ; <i32> [#uses=2] %tmp4 = icmp ne i32 %tmp3, 168296448 ; <i1> [#uses=1] %tmp5 = and i1 %tmp2, %tmp4 ; <i1> [#uses=1] %tmp6 = and...
2018 Sep 20
3
Aliasing rules difference between GCC and Clang
...e is loaded once again before its second use. This happens many times, with three loads instead of one for each value. GCC only emits one load. The values are the arguments to this function: void su3_projector( su3_vector *a, su3_vector *b, su3_matrix *c ){ register int i,j; register double tmp,tmp2;     for(i=0;i<3;i++)for(j=0;j<3;j++){         tmp2 = a->c[i].real * b->c[j].real;         tmp = a->c[i].imag * b->c[j].imag;         c->e[i][j].real = tmp + tmp2;         tmp2 = a->c[i].real * b->c[j].imag;         tmp = a->c[i].imag * b->c[j].real;        ...
2005 Jul 08
2
Sweave resource leak: leftover temp files (PR#7999)
...looping file I use to subset the data frame, create a tex file, and Sweave it. This results in N number of tex files where N is equal to the number of rows in the data frame. list <- unique(wide$stuid) master = "master.tex" for (i in list){ tmp1 <- subset(wide, stuid==i) tmp2 <- paste(i, "tex", sep=".") Sweave("fam_template.Rnw", output=tmp2) file.append("fam_master.tex", tmp2) } If I follow correctly, I would need to place these commands inside the loop as follows: list <- unique(wide$stuid) master = "mas...
2009 Nov 09
1
zoo: bug with unique for yearmon
I'm using R 2.10.0, with zoo 1.5-8. The release notes for zoo 1.5-8 claim a bug with unique for yearmon objects has been fixed, but I'm still having problems. Browse[1]> tmp2 [1] "Dec 1996" "Dec 1996" Browse[1]> unique(tmp2) [1] "Dec 1996" "Dec 1996" Browse[1]> unique(unique(tmp2)) [1] "Dec 1996" Browse[1]> as.numeric(tmp2) - (1996 + 11/12) [1] 0.000000e+00 -2.273737e-13 Is there a work-around? I had been usin...
2007 Nov 23
1
[LLVMdev] Will any pass change simple return branch into select/return pair?
Hi, Can any llvm pass change simple return branch into select/return pair? For example: define i10 @mod_N(i10 zeroext %a) zeroext { entry: %tmp2 = icmp ugt i10 %a, -400 ; <i1> [#uses=1] br i1 %tmp2, label %cond_true, label %return cond_true: ; preds = %entry %tmp5 = add i10 %a, 400 ; <i10> [#uses=1] ret i10 %tmp5 return: ; preds = %entry ret i10 %a } Changed into: define i10 @mod_N(i10 zero...
2009 May 21
0
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On Wed, May 20, 2009 at 4:55 PM, Dan Gohman <gohman at apple.com> wrote: > Can you explain why you chose the approach of using a new pass? > I pictured removing LegalizeDAG's type legalization code would > mostly consist of finding all the places that use TLI.getTypeAction > and just deleting code for handling its Expand and Promote. Are you > anticipating something more
2009 May 20
2
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On May 20, 2009, at 1:34 PM, Eli Friedman wrote: > On Wed, May 20, 2009 at 1:19 PM, Eli Friedman > <eli.friedman at gmail.com> wrote: > >> Per subject, this patch adding an additional pass to handle vector >> >> operations; the idea is that this allows removing the code from >> >> LegalizeDAG that handles illegal types, which should be a significant
2004 Jul 03
2
Multiple E1s over TDMoE?
When I was trying to run mutiple E1s over TDMoE, the zaptel would drivers complain about too little memory, whenever I added more than 31 channels. Requesting 62 channels in a dynamic span gave me ... span creation failed: Cannot allocate memory upon loading the zaptel drivers. How would you go about running, 8 or 16 say, E1s over TDMoE? Would you create multiple dynamic spans or just one large