search for: tmp_d

Displaying 3 results from an estimated 3 matches for "tmp_d".

Did you mean: tmp__
2006 Feb 24
1
(Newbie) Aggregate for NA values
...ncluded, and is excluding them from the means causing some sort of bias. So I want the summary stat for the NA's also. Here is a simple example session (edited to remove the typos I made, comments added later): > tmp_a <- 1:10 > tmp_b <- rep(1:5,2) > tmp_c <- rep(1:2,5) > tmp_d <- c(1,1,1,2,2,2,3,3,3,4) > tmp_df <- data.frame(tmp_a,tmp_b,tmp_c,tmp_d); > tmp_df$tmp_c[9:10] <- NA ; > tmp_df tmp_a tmp_b tmp_c tmp_d 1 1 1 1 1 2 2 2 2 1 3 3 3 1 1 4 4 4 2 2 5 5 5 1 2 6...
2016 Apr 23
2
if-conversion
...branches, and just needs a vector select to vectorize them. In the original code it needs to figure out, that it needs some kind of “+ 0” in the true branch, and it currently fails to do so. Another way to help vectorizer in this case is to manually hoist the loads, like this: int tmp_d = d[i]; res[i] = (p[i] == 0) ? res[i] : (res[i] + tmp_d); Hope this helps, Michael > > or you can use the OpenMP 4 pragma: > > #pragma omp simd > > -Hal > > ----- Original Message ----- >> From: "RCU via llvm-dev" <llvm-dev at lists...
2016 Apr 22
2
if-conversion
Hi. I'm trying to vectorize the following piece of code with Loop Vectorizer (from LLVM distribution Nov 2015), but no vectorization takes place: int *Test(int *res, int *c, int *d, int *p) { int i; for (i = 0; i < 16; i++) { //res[i] = (p[i] == 0) ? c[i] : d[i]; res[i] = (p[i] == 0) ? res[i] : res[i] + d[i];