Displaying 11 results from an estimated 11 matches for "cond4".
Did you mean:
cond
2017 Jul 24
5
Ifelse statements and combining columns
Hi everyone,
I'm having some trouble with my ifelse statements.
I'm trying to put 12 conditions within 3 groups. Here is the code I have so
far:
dat$cond <- ifelse(test = dat$cond == "cond1" | dat$cond == "cond2" |
dat$cond == "cond3" dat$cond == "cond4"
yes = "Uniform"
no = ifelse(test = dat$cond == "cond5" | dat$cond ==
"cond6") | dat$cond == "cond7" dat$cond == "cond8"
yes = "Biased Low"
no = "Biased...
2012 May 04
0
[LLVMdev] Extending GetElementPointer, or Premature Linearization Considered Harmful
...com> wrote:
>
> which produces
>
> %arrayidx24 = getelementptr inbounds [100 x [100 x i64]]* %A, i64
> %arrayidx21.sum, i64 %add1411, i64 %add
> store i64 0, i64* %arrayidx24, align 8
> {{{(5 + ((3 + %n) * %n)),+,(2 * %n * %n)}<%for.cond1.preheader>,+,(4 * %n)}<%for.cond4.preheader>,+,6}<%for.cond7.preheader>
This expression is not straight forward because llvm always fold the
loop invariant in the AddExpr into the AddRecExpr.
If I understand the AddRecExpr correctly, the above SCEV is equivalent to:
(5 + ((3 + %n) * %n)) + (2 * %n * %n) * {0,+,1}<%for.c...
2012 May 04
3
[LLVMdev] Extending GetElementPointer, or Premature Linearization Considered Harmful
...+)
** for (long int k = 0; k < n; k++)
** **A[1 + 2*i][3 + 4*j][5 + 6*k] = 0;*
}
we'll see
*%arrayidx12 = getelementptr inbounds [100 x [100 x i64]]* %A, i64 %add109,
i64 %add88, i64 %add*
*store i64 0, i64* %arrayidx12, align 8*
*{1,+,2}<%for.cond1.preheader>*
*{3,+,4}<%for.cond4.preheader>*
*{5,+,6}<%for.body6>*
which looks great; 3 simple indices, no problem.
But consider this:
*void z2(long int n, long int A[][n][n][100][100]) {*
* for (long int i = 0; i < n; i++)*
* for (long int j = 0; j < n; j++)*
* for (long int k = 0; k < n; k++)*
* **f...
2002 Mar 04
2
Plotting a x axis from a vector with rownames
Hi all,
suppose there is a vector y with rownames:
> y
cond1 cond2 cond3 cond4
78.952 87.308 86.490 74.040
how can I easily plot this vector using the rownames? plot(y) gives me a
plot with a x-axis from 1 to 4 in 0.5 steps, also plot(rownames(y), y)
and plot(y ~ rownames(y) don't work. I know I can build a x-axis with
axis(1, ...), but in this case I need a character...
2017 Jul 24
0
Ifelse statements and combining columns
...ng some trouble with my ifelse statements.
>
>I'm trying to put 12 conditions within 3 groups. Here is the code I
>have so
>far:
>
>dat$cond <- ifelse(test = dat$cond == "cond1" | dat$cond == "cond2" |
>dat$cond == "cond3" dat$cond == "cond4"
> yes = "Uniform"
> no = ifelse(test = dat$cond == "cond5" | dat$cond ==
>"cond6") | dat$cond == "cond7" dat$cond == "cond8"
> yes = "Biased Low"
>...
2009 Sep 04
1
User defined function's argument as Subset function's input
Dear R users,
I have a data where I desire to subset according to certain conditions.
However, the script is very messy as there are about 30 distinct conditions.
(i.e. same script but with different conditions)
I would like to make a user defined function so that I can input the desired
conditions and just get the results accordingly.
Below is an arbitrary data set & sample statements
2012 Jul 25
1
[LLVMdev] Inneffiecient code produced by reg2mem?
Is there a pass I can use after reg2mem to get rid of occurances like this?:
store i32 %cond, i32* %cond.reg2mem
%cond.reload = load i32* %cond.reg2mem
store i32 %cond.reload, i32* %cond4.reg2mem
Essentially, in this case, reg2mem creates an extra memory space to store
and load a value from just here, and never uses the value again; since this
isn't efficient code, I'm wondering if there's another pass I can use to
fix the innefficient code reg2mem produces, or if my tr...
2011 Jun 17
4
profile plot in R
Hi friends,
I have a matrix with following format.
group var1 var2 .......varN
c1 group1 1.2399 1.4990....-1.4829
c2 group4 0.8989 0.7849.....1.8933
...
...
c100 group10 .....
I want to draw a profile plot
of each condition c1 to c100, which rows in above matrix and each line
representing a row should be uniquely colored according to the group(1
to 10).
I think this is simple task
2011 Oct 19
0
[LLVMdev] Question regarding basic-block placement optimization
...se2:
%gep3 = getelementptr i32* %a, i32 3
%val3 = load i32* %gep3
%cond3 = icmp ugt i32 %val3, 3
br i1 %cond3, label %then3, label %else3, !prof !0
then3:
call void @error(i32 %i, i32 1, i32 %b)
br label %else3
else3:
%gep4 = getelementptr i32* %a, i32 4
%val4 = load i32* %gep4
%cond4 = icmp ugt i32 %val4, 4
br i1 %cond4, label %then4, label %else4, !prof !0
then4:
call void @error(i32 %i, i32 1, i32 %b)
br label %else4
else4:
%gep5 = getelementptr i32* %a, i32 3
%val5 = load i32* %gep5
%cond5 = icmp ugt i32 %val5, 3
br i1 %cond5, label %then5, label %exit, !prof...
2011 Oct 19
3
[LLVMdev] Question regarding basic-block placement optimization
On Tue, Oct 18, 2011 at 6:58 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote:
>
> On Oct 18, 2011, at 5:22 PM, Chandler Carruth wrote:
>
> As for why it should be an IR pass, mostly because once the selection dag
>> runs through the code, we can never recover all of the freedom we have at
>> the IR level. To start with, splicing MBBs around requires known about
2015 Mar 05
5
[LLVMdev] RFC - Improvements to PGO profile support
> On Mar 2, 2015, at 4:19 PM, Diego Novillo <dnovillo at google.com> wrote:
>
> On Thu, Feb 26, 2015 at 6:54 PM, Diego Novillo <dnovillo at google.com <mailto:dnovillo at google.com>> wrote:
>
> I've created a few bugzilla issues with details of some of the things I'll be looking into. I'm not yet done wordsmithing the overall design document.