search for: tmp3

Displaying 20 results from an estimated 218 matches for "tmp3".

Did you mean: tmp
2017 Jun 20
2
Problem with shortestPath in igraph and qgraph
...parameters. Now I want to know the maximum value of shortest path for each vertex with discarding the Inf value in short pathes. For this I use the ShortestPathLengths of centrality function in qgraph. but when I want to get the maximum the result is wrong. here is my code: cen<-centrality(Q) tmp3<-cen$ShortestPathLengths shp<-matrix(1:ncol(tmp3),ncol(tmp3),1)for(i in ncol(tmp3)){ shp[i,]=max(tmp3[i,][tmp3[i,]!=Inf)} when I display the valu of shp the result is same as initial value (form one to ncol). I also test with shortest.paths function. the result was same. what is my wrong?...
2017 Jun 21
0
Problem with shortestPath in igraph and qgraph
...maximum value of shortest path for each vertex >with >discarding the Inf value in short pathes. For this I use the >ShortestPathLengths of centrality function in qgraph. but when I want >to >get the maximum the result is wrong. here is my code: > >cen<-centrality(Q) > >tmp3<-cen$ShortestPathLengths >shp<-matrix(1:ncol(tmp3),ncol(tmp3),1)for(i in ncol(tmp3)){ >shp[i,]=max(tmp3[i,][tmp3[i,]!=Inf)} > >when I display the valu of shp the result is same as initial value >(form >one to ncol). I also test with shortest.paths function. the result was &g...
2013 Jan 29
3
[LLVMdev] [PATCH] parallel loop awareness to the LoopVectorizer
On Jan 29, 2013, at 12:51 AM, Tobias Grosser <tobias at grosser.es> wrote: > > # ignore assumed dependences. > for (i = 0; i < 4; i++) { > tmp1 = A[3i+1]; > tmp2 = A[3i+2]; > tmp3 = tmp1 + tmp2; > A[3i] = tmp3; > } > > Now I apply for whatever reason a partial reg2mem transformation. > > float tmp3[1]; > > # ignore assumed dependences. // Still valid? > for (i = 0; i < 4; i++) { > tmp1 = A[3i+1]; > tmp2 = A[3i+2]; > tmp3[0] =...
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, as a result, I want a data frame...
2013 Jan 30
0
[LLVMdev] [PATCH] parallel loop awareness to the LoopVectorizer
...otem wrote: > > On Jan 29, 2013, at 12:51 AM, Tobias Grosser <tobias at grosser.es > <mailto:tobias at grosser.es>> wrote: > >> >> # ignore assumed dependences. >> for (i = 0; i < 4; i++) { >> tmp1 = A[3i+1]; >> tmp2 = A[3i+2]; >> tmp3 = tmp1 + tmp2; >> A[3i] = tmp3; >> } >> >> Now I apply for whatever reason a partial reg2mem transformation. >> >> float tmp3[1]; >> >> # ignore assumed dependences. // Still valid? >> for (i = 0; i < 4; i++) { >> tmp1 = A[3i+1]; &g...
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
2008 Jul 18
2
[LLVMdev] Alignment of vectors
...oat** %p ; <float*> [#uses=1] %tmp2 = load i32* %offset ; <i32> [#uses=1] %add.ptr = getelementptr float* %tmp1, i32 %tmp2 ; <float*> [#uses=1] %conv = bitcast float* %add.ptr to <2 x float>* ; <<2 x float>*> [#uses=1] %tmp3 = load <2 x float>* %conv ; <<2 x float>> [#uses=1] store <2 x float> %tmp3, <2 x float>* %tmp ret void } The problem is that the load into tmp3 seems to have lost any information that %conv should not be aligned to 8 bytes but rather 4. Of course, GCC...
2009 Dec 07
2
outputting functions in lapply
How come the k is 3 in all of this output? I expected it to be equal to r. > tmp3 <- lapply(1:3, function(k) function(r) print(paste(r, "<- r | k ->", k))) > for (i in 1:3) { tmp3[[i]](i) } [1] "1 <- r | k -> 3" [1] "2 <- r | k -> 3" [1] "3 <- r | k -> 3" -- Med venlig hilsen Rune Schjellerup Philosof Ph.d-...
2013 Jan 29
0
[LLVMdev] [PATCH] parallel loop awareness to the LoopVectorizer
...would like to discuss the test cases I want to see a little bit more. I am especially interested to see that the meta data is robust in case of transformations. Assuming we have something like; # ignore assumed dependences. for (i = 0; i < 4; i++) { tmp1 = A[3i+1]; tmp2 = A[3i+2]; tmp3 = tmp1 + tmp2; A[3i] = tmp3; } Now I apply for whatever reason a partial reg2mem transformation. float tmp3[1]; # ignore assumed dependences. // Still valid? for (i = 0; i < 4; i++) { tmp1 = A[3i+1]; tmp2 = A[3i+2]; tmp3[0] = tmp1 + tmp2; A[3i] = tmp3[0]; } Is the meta da...
2009 Nov 11
3
[LLVMdev] Puzzled by results of -O3
...owing sequence of intructions is not collapsed to "ret i32 0" by the opt tool with "-03". --- %0 = type <{ i32* }> define i32 @main(%0* noalias nocapture %arg) nounwind readnone { bb: %tmp = alloca [1024 x i32], align 4 ; <[1024 x i32]*> [#uses=2] %tmp3 = getelementptr inbounds [1024 x i32]* %tmp, i32 0, i32 0 ; <i32*> [#uses=1] %tmp4 = bitcast [1024 x i32]* %tmp to [1 x i32]* ; <[1 x i32]*> [#uses=1] store [1 x i32] zeroinitializer, [1 x i32]* %tmp4 %tmp5 = load i32* %tmp3 ; <i32> [#uses=1] ret i3...
2012 Sep 21
5
[LLVMdev] Question about LLVM NEON intrinsics
...:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32" target triple = "armv7-none-linux-androideabi" define void @vmaxf32(<4 x float> *%C, <4 x float>* %A, <4 x float>* %B) nounwind { %tmp1 = load <4 x float>* %A %tmp2 = load <4 x float>* %B %tmp3 = call <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float> %tmp1, <4 x float> %tmp2) store <4 x float> %tmp3, <4 x float>* %C ret void } declare <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float>, <4 x float>) nounwind readnone I've g...
2008 Jul 18
0
[LLVMdev] Alignment of vectors
...t; [#uses=1] > %tmp2 = load i32* %offset ; <i32> [#uses=1] > %add.ptr = getelementptr float* %tmp1, i32 %tmp2 ; <float*> > [#uses=1] > %conv = bitcast float* %add.ptr to <2 x float>* ; <<2 x float>*> > [#uses=1] > %tmp3 = load <2 x float>* %conv ; <<2 x float>> [#uses=1] > store <2 x float> %tmp3, <2 x float>* %tmp > ret void > } > > The problem is that the load into tmp3 seems to have lost any information > that %conv should not be aligned to 8 bytes...
2012 Sep 21
0
[LLVMdev] Question about LLVM NEON intrinsics
...28:128:128-a0:0:64-n32" > target triple = "armv7-none-linux-androideabi" > > define void @vmaxf32(<4 x float> *%C, <4 x float>* %A, <4 x float>* %B) nounwind { > %tmp1 = load <4 x float>* %A > %tmp2 = load <4 x float>* %B > %tmp3 = call <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float> %tmp1, <4 x float> %tmp2) > store <4 x float> %tmp3, <4 x float>* %C > ret void > } > > declare <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float>, <4 x float>) nounwind...
2008 Dec 19
0
What BIC is calculated by 'regsubsets'?
...) # 1060.755 tmp2 <- -2 * (-520.8705) + 4 * log(116) # 1060.755, agrees cat(paste("\nFrom R's BIC:",signif(tmp1,5),"(",signif(tmp2,5), "obtained 'by hand')\n\n")) # Now see how 'regsubsets' calculates the BIC tmp3 <- regsubsets(Ozone ~ Solar.R + Wind + Temp, data=airquality) tmp3.s <- summary(tmp3) # 'mod1' is the second model in 'tmp3'; what is the formula for this BIC? cat("\nThe corresponding model from 'regsubsets':\n") print(tmp3.s$which[2,]) tmp4 <- tmp3....
2010 Jul 16
3
how to skip a specific value when using apply() function to a matrix?
Hello R experts, I'd like to studentize a matrix (tmp1) by column using apply() function and skip some specific values such as zeros in the example below to tmp2 but not tmp3. I used the script below and only can get a matrix tmp3. Could you please help me to studentize the matrix (tmp1) without changing the zeros and generate a new matrix tmp2? Thanks, Joshua tmp1 [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15 7 9 49 60 3 2 0 [2,] 13 7...
2007 Nov 29
2
[LLVMdev] LLVM and OpenMP
...t %struct..omp_data_s.1* %.omp_data_o.3 to i8* ; <i8*> [#uses=2] call void @GOMP_parallel_start( void (i8*)* @main.omp_fn.0, i8* %.omp_data_o.31, i32 0 ) nounwind call void @main.omp_fn.0( i8* %.omp_data_o.31 ) call void @GOMP_parallel_end( ) nounwind %tmp3 = load i32* %sum, align 4 ; <i32> [#uses=1] %tmp5 = call i32 (i8*, ...)* @printf( i8* getelementptr ([10 x i8]* @.str, i32 0, i32 0), i32 %tmp3 ) nounwind $ ret i32 undef } define internal void @main.omp_fn.0(i8* %.omp_data_i) { entry: %tmp1 = tail call i...
2008 Feb 22
1
Clipping using par(plt=..., xpd=FALSE) inconsistencies
...show the same behavior. Run the following set of commands: x <- rnorm(1000) hist(x, xlim=c(-4,4)) tmp <- par('plt') box(col='#00000000') tmp2 <- tmp tmp2[2] <- tmp2[1] + 0.3 par(xpd = FALSE, plt=tmp2) hist(x, col='red', add=TRUE) box(col='#00000000') tmp3 <- tmp tmp3[1] <- tmp3[2] - 0.3 par(xpd=FALSE, plt=tmp3) hist(x, col='blue', add=TRUE) par(plt=tmp) This gives me the plot that I want and expect (a histogram with the left section red, the middle white/background, and the right blue). Now comment out or delete the 2 box commands a...
2008 Jan 12
1
[LLVMdev] Labels
...bal i32 0 define i32 @yyrefill() { entry: %tmp842 = load i32* @yybuflen, align 4 %tmp943 = load i32* @yypos, align 4 %tmp1044 = sub i32 %tmp842, %tmp943 %tmp1145 = icmp slt i32 %tmp1044, 512 br i1 %tmp1145, label %bb, label %bb13 bb: %tmp2.rle = phi i32 [ %tmp842, %entry ], [ %tmp8, %bb ] %tmp3 = shl i32 %tmp2.rle, 1 store i32 %tmp3, i32* @yybuflen, align 4 %tmp5 = load i8** @yybuf, align 4 %tmp6 = tail call i8* @realloc( i8* %tmp5, i32 %tmp3 ) store i8* %tmp6, i8** @yybuf, align 4 %tmp8 = load i32* @yybuflen, align 4 %tmp9 = load i32* @yypos, align 4 %tmp10 = sub i32 %tmp8, %tmp9...
2012 Sep 21
2
[LLVMdev] RE : Question about LLVM NEON intrinsics
...28:128:128-a0:0:64-n32" > target triple = "armv7-none-linux-androideabi" > > define void @vmaxf32(<4 x float> *%C, <4 x float>* %A, <4 x float>* %B) nounwind { > %tmp1 = load <4 x float>* %A > %tmp2 = load <4 x float>* %B > %tmp3 = call <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float> %tmp1, <4 x float> %tmp2) > store <4 x float> %tmp3, <4 x float>* %C > ret void > } > > declare <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float>, <4 x float>) nounwind...
2008 Apr 01
2
Wrong UIDs returned from mailbox_transaction_commit_get_uids()
...m is in: int mailbox_transaction_commit(struct mailbox_transaction_context **t) { uint32_t tmp; return mailbox_transaction_commit_get_uids(t, &tmp, &tmp, &tmp); } It should be: int mailbox_transaction_commit(struct mailbox_transaction_context **t) { uint32_t tmp1, tmp2, tmp3; return mailbox_transaction_commit_get_uids(t, &tmp1, &tmp2, &tmp3); } After this fix it works OK. Thanks, Ron ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blo...