search for: input2

Displaying 20 results from an estimated 225 matches for "input2".

Did you mean: inputs
2010 Jan 20
2
Error meaning
Hi r-users,   I have the following code to solve 4 simultaneous eqns with 4 unknowns using newton iteration method.  But I got the error message:   pars <- c(1.15, 40, 50, 0.78) newton.input2 <- function(pars) {  ## parameters to estimate      alp <- pars[1]    b1  <- pars[2]     b2  <- pars[3]    rho <- pars[4]   f1 <- pars[1]*pars[2] f2 <- pars[1]*(pars[1]+1)*pars[2]^2 f3 <- pars[1]*(pars[1]+1)*pars[3]^2 f4 <- pars[1]*pars[2]*pars[3](pars[1]+pars[4]) f...
2006 Oct 06
1
transactions not work for array?
Hi, I have a transaction block as follow: begin Hello.transaction(input1,input2) input1.save for i in 0 to count input2[i].input1_id = input1.id input2[i].save end end rescue end I have used validates_uniqueness_of for input2 in the model The problem is, when there is duplicate record in input2, input1 and the first rec...
2005 Mar 05
1
vector memory allocation?
Hi all, I have a vector size allocation problem with R 2.0.1 (script and output shown): > var1 <- sum (input1 * input2, na = TRUE) > gc() used (Mb) gc trigger (Mb) Ncells 199327 5.4 785113 21.0 Vcells 71039552 542.0 206003790 1571.7 > var2 <- sum (input1 * input2 / input2, na = TRUE) Error: cannot allocate vector of size 524288 Kb input1 and input2 are matrices input from te...
2010 May 29
3
[LLVMdev] Vectorized LLVM IR
...pipermail/llvm-dev/attachments/20100529/b44926fc/attachment.png> -------------- next part -------------- For scalar code in C++ code is : virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) { FAUSTFLOAT* input0 = input[0]; FAUSTFLOAT* input1 = input[1]; FAUSTFLOAT* input2 = input[2]; FAUSTFLOAT* input3 = input[3]; FAUSTFLOAT* output0 = output[0]; for (int i=0; i<count; i++) { output0[i] = (FAUSTFLOAT)(((float)input2[i] + (float)input3[i]) * ((float)input0[i] + (float)input1[i])); } } The "vectorized" C++ code is : virtual void compute (in...
2010 May 29
0
[LLVMdev] Vectorized LLVM IR
...a single output) > > > > > > For scalar code in C++ code is : > > virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) { >                FAUSTFLOAT* input0 = input[0]; >                FAUSTFLOAT* input1 = input[1]; >                FAUSTFLOAT* input2 = input[2]; >                FAUSTFLOAT* input3 = input[3]; >                FAUSTFLOAT* output0 = output[0]; >                for (int i=0; i<count; i++) { >                        output0[i] = (FAUSTFLOAT)(((float)input2[i] + (float)input3[i]) * ((float)input0[i] + (float)input1[i]...
2011 Apr 28
1
Subscript out of Bounds
I currently have this code: for(j in 2:n){ for(i in 1:(j-1)){ # Make sure the inputs are for the matrix "m" input1=rownames(m)[i] input2=colnames(m)[j] q=t[(t$Rec1==input1 & t$Rec2==input2),output] if(length(q)==0){ q=t[(t$Rec1==input2 & t$Rec2==input1),output] } m[i,j]=mean(q) m[j,i]=mean(q) m[j,j]=mean(q) }} I already created a 20x20 matrix "m" and have the rows and columns made...
2010 May 29
1
[LLVMdev] Vectorized LLVM IR
...>> >> >> For scalar code in C++ code is : >> >> virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) { >>                FAUSTFLOAT* input0 = input[0]; >>                FAUSTFLOAT* input1 = input[1]; >>                FAUSTFLOAT* input2 = input[2]; >>                FAUSTFLOAT* input3 = input[3]; >>                FAUSTFLOAT* output0 = output[0]; >>                for (int i=0; i<count; i++) { >>                        output0[i] = (FAUSTFLOAT)(((float)input2[i] + (float)input3[i]) * ((float)input0[i] +...
2011 May 26
1
matrix not working
...lumn d are NA - column d was created with the code: df$d=rank(df$c, na.last="keep") #----------R Code---------# item=unique(df$a) n=length(list) r=matrix(data=NA,nrow=n, ncol=n, dimnames=list(PRR1=item, PRR2=item)) for(j in 2:ln) { for(i in 1:(j-1)) { input1=rownames(r)[i] input2=colnames(r)[j] q=df[(df$a==input1 & df$b==input2), "d"] if(length(q)==0) { q=df[(df$a==input2 & df$b==input1), "d"] } if(length(q)==0) { q=NA } r[j,i]=q r[i,j]=q r[j,j]=q } } The result is a matrix with the appro...
2010 May 28
0
[LLVMdev] Vectorized LLVM IR
Hi Stéphane, The SSE support is the LLVM backend is fine. What is the code that's generated? Do you have some short examples of where LLVM doesn't do as well as the equivalent scalar code? -bw On May 28, 2010, at 12:13 PM, Stéphane Letz wrote: > Hi, > > We are experimenting directly generating vectorized LLVM IR (using <8 x float> kind of types), then compiling the code
2010 May 28
3
[LLVMdev] Vectorized LLVM IR
Hi, We are experimenting directly generating vectorized LLVM IR (using <8 x float> kind of types), then compiling the code to SSE on a 64 bits machine. Right now the equivalent code in scalar mode sill outperform the SSE one. What is the quality of the SSE support in X86 LLVL backend? Are they any specific things to be aware of to improve the speed? Thanks Stéphane Letz
2018 Jul 10
2
RMarkdown Vignettest in R packages with child is failing in package build
...nt. While this report renders executing rmarkdown::render or devtools::build_vignettes, it fails when building the package with devtools::build or R CMD build given the following error: Error in eval(x, envir = envir) : object 'child_docs' not found Warning in readLines(if (is.character(input2)) { : cannot open file './child_docs': No such file or directory Quitting from lines 351-351 (./child_docs) Error in readLines(if (is.character(input2)) { : cannot open the connection ERROR: installing vignettes failed * removing 'C:/Users/wolski/AppData/Local/Temp/RtmpIti891/Rinst2...
2010 Feb 10
4
Readjusting the OUTPUT csv file
Dear R helpers   I have some variables say ABC, DEF, PQR, LMN and XYZ. I am choosing any three varaibles at random at a time for my analysis and name these files as input1.csv, input2.csv and input3.csv. So if I choose variables say ABC, DEF and PQR, I am passing the specifications of these variables to input1.csv, input2.csv and input3.csv respectively.   This means in another case even if I choose say LMN, DEF and XYZ in this order, then my input1.csv will have details of LMN...
2000 Nov 02
1
Pl. provide and Input for var.test (PR#716)
...nterval: 0.4675884 1.8646602 sample estimates: ratio of variances 0.950451 (CaseB) Now I want R to give me the same output as above, when I read it from a file. The commands I gave are: R library(ctest) x<-read.table("input1.txt", header = FALSE) y<-read.table("input2.txt", header = FALSE) var.test(x,y) The output generated by R is an error: "not enough x observations" I want to know why is this error coming, since I am creating the input1.txt from rnorm(50) and input2.txt from rnorm(30),which should mean the same? Pl. see if you can provide a...
2007 Jun 05
2
.activate() behaviour
...="prototype.js"></script> </head> <body> <form action="bllalba"> <table> <tr> <td>Input1</td> <td><input id="input1" type="text" name="bla1" /></td> <td>Input2</td> <td><input id="input2" class="focusable" type="text" name="bla2" /></ td> </tr> </table> <script type="text/javascript"> $(''input1'').activate(); $$(''.focusable...
2011 Jul 05
1
Executing a function several time, how to save the output
Hi all, I try to exceute a function "myfun" that should use as input "input1.csv" and "input2.csv" . Then I try to save the output dat33 on a csv file (on per each time I execute input1..input 2 and so on). So my problem is how to finally obtain several csv file with "ggt1.csv", "ggt2.csv". The program creates ggt1.csv but BUT when runs "myfun" by secon...
2018 Sep 14
1
Problem building rmarkdown vignettes with child
...devtools::clean_vignettes() devtools::build() # or R CMD build PACKAGE Fails with the diagnostic: ** building package indices ** installing vignettes ?Grp2Analysis.Rmd? using ?UTF-8? Error in eval(x, envir = envir) : object 'child_docs' not found Warning in readLines(if (is.character(input2)) { : cannot open file './child_docs': No such file or directory Quitting from lines 387-388 (./child_docs) Error in readLines(if (is.character(input2)) { : cannot open the connection ERROR: installing vignettes failed I did try to use the base::system.file and devtools::system.file fu...
2000 Nov 14
3
2 plots 1 figure
How do you obtain two plots on the same figure? for example plot(rnorm(100) plot(rnorm(100),type="l") -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To:
2007 Feb 25
3
Macros in R
Dear members, I have started to work with R recently and there is one thing which I could not solve so far. I don't know how to define macros in R. The problem at hand is the following: I want R to go through a list of 1:54 and create the matrices input1, input2, input3 up to input54. I have tried the following: for ( i in 1:54) { input[i] = matrix(nrow = 1, ncol = 107) input[i][1,]=datset$variable } However, R never creates the required matrices. I have also tried to type input'i' and input$i, none of which worked. I would b...
2008 Jun 12
0
[LLVMdev] code generation order revisited.
...ant %xty ; <%xty*> [#uses=0] (This is not a side-effect of llvm-as or llvm-dis, but a fundamental property of the LLVM 'Type' class.) The only type that is not shape-isomorphic is 'opaque'. Each mention of 'opaque' in LLVM IR is a distinct type: gordon$ cat input2.ll %xty = type opaque %yty = type opaque @x = external constant %xty @y = external constant %yty gordon$ llvm-as < input2.ll | llvm-dis ; ModuleID = '<stdin>' %xty = type opaque %yty = type opaque @x = external constant %xty ; &...
2018 Jul 13
1
RMarkdown Vignettest in R packages with child is failing in package build
...r >> devtools::build_vignettes, it fails when building the package with >> devtools::build or R CMD build >> given the following error: >> >> >> Error in eval(x, envir = envir) : object 'child_docs' not found >> Warning in readLines(if (is.character(input2)) { : >> cannot open file './child_docs': No such file or directory >> Quitting from lines 351-351 (./child_docs) >> Error in readLines(if (is.character(input2)) { : >> cannot open the connection >> ERROR: installing vignettes failed >> * removing &...