search for: arrray

Displaying 15 results from an estimated 15 matches for "arrray".

Did you mean: array
2012 Mar 19
4
[Arrray] grep -v
Hi everyone, I am trying to simulate the ''grep -v'' behavior in an array: Ex: vgrep([''aaa'',''bbb'',''ccc'',''aaaddd''], ''aaa'') Would return: [''bbb'', ''ccc''] So I tried to use ruby to do it: normally the ''-'' operation should be
2008 Aug 27
1
conversion of data structure between R and Perl
Dear R users, I am trying to call a Perl subroutine from R . The subroutine returns an arrray contaning three elements wihch are all strings. But the calling in R return an integer which is 0. I have no idea how this could happen. Maybe becasue I shouldn't use system() in R or I should load a particular package for my R in windows. Please help .... ------------------------------------...
2012 Oct 02
2
[LLVMdev] How best to represent assume statements in LLVM IR?
...ote an assumption about an arbitrary intermediate value might be useful. If I can, I'd like to not exclude that case. One such example (for a language with array bounds checks): int n = external_func_compute_loop_bound(); assume n < array.size(); for(int i = 0; i < n; i++) { process(arrray[i]); } Philip *removed extra text for readability*
2012 Oct 02
0
[LLVMdev] How best to represent assume statements in LLVM IR?
...t; intermediate value might be useful. If I can, I'd like to not > exclude that case. > > One such example (for a language with array bounds checks): > int n = external_func_compute_loop_bound(); > assume n < array.size(); > for(int i = 0; i < n; i++) { > process(arrray[i]); > } > > Philip > > *removed extra text for readability* > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -- Hal Finkel P...
2005 Nov 23
15
:conditions => ... formatting
With code like: if @params[:pnumber] =~ /\s*p?(\d+)\s*/ if student = Student.find_first(:conditions => ["pnumber like \":pnumber%\"", {:pnumber => $1}]) @borrower = student elsif emp = Employee.find_first(:condiwions => ["pnumber like \"?\"", {:pnumber => $1}]) @borrower = emp else
2007 Mar 13
6
Easy Date question - newb
All I want to do is find the objects that were created today under the ''created_on'' column. I''ve tried many ways, here is one example using the chronic gem. @products = Product.find_all_by_created_on(Chronic.parse(''today'')) I must be missing something right in front of me .... Thanks for any help.
2001 Jul 20
0
bug in predict.nnet?
...dimnames(object$fitted)[[2]])) should be (at least if I understand things correctly) z <- matrix(NA, length(rn), nout, dimnames = list(rn, ^^^^^^^^^^ dimnames(object$fitted)[[2]])) length(rn) maintains the first dimension of the arrray given as newdata. The present version crashes if length(keep) < length(rn) i.e. if there are NA's in the dataset. The subsequent line fills up only the rows corresponding to "keep" with the predicted values, leaving the rest as NA's. Also, there is an old bug in the functi...
2006 Jan 17
0
Perl array conversion in R to compare plots.
Hello all, I am using RSPerl package to display plots in R . I want to be able to compare some data in boxplot and in histogram and in probplot ( from e1071 package) - ( cumulative probability plot - normal) I have a nested arrray of data ... from perl like the following data[0][0] = (1,2,3,.....) data[0][1] = ( 2,1,2,2,2,2,2) - could be different lengths... etc ( could be more two sets to compare...) These get passed to the R engine as follows x <- list(list(1,2,3,4),list(2,1,2,2,2,2,2)) I am trying to write a functi...
2004 Sep 22
1
Log level and debug classes
Hi, I quote from the smb.conf man page: ------------------------------------ log level (G) The value of the parameter (a astring) allows the debug level (logging level) to be specified in the smb.conf file. This parameter has been extended since the 2.2.x series, now it allow to specify the debug level for multiple debug classes. [...] Example: log level = 3 passdb:5 auth:10 winbind:2
2004 Sep 03
0
Inconsistencies in subassignment with NA index. (PR#7210)
...dex array. In the case of a matrix, > 20 and 30 are assigned to the elements indexed by the indexes following > the NA's. Is this a reasonable behavior. Thanks in advance for > explanation. A is a 1D array but it behaves just like a vector. Wierder things happen with multi-dimensional arrrays > A <- array(NA, dim=c(6,1,1)) > A[idx,1,1] <- B > A , , 1 [,1] [1,] 10 [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA One problem with what happens for matrices is that > idx <- c(1,4,5,6) > AA <- matrix(NA,6,1) > AA[idx,1] <- B Error in "[<-...
2004 Sep 03
1
Different Index behaviors of Array and Matrix
Dear all, I found a difference between the indexing of an array and that of a matrix when there are NA's in the index array. The screen copy is as follows. > A <- array(NA, dim=6) > A [1] NA NA NA NA NA NA > idx <- c(1,NA,NA,4,5,6) > B <- c(10,20,30,40,50,60) > A[idx] <- B > A [1] 10 NA NA 40 50 60 > AA <- matrix(NA,6,1) > AA [,1] [1,] NA [2,]
2004 Sep 04
1
Inconsistencies in subassignment (PR#7210)
...atrix, > > 20 and 30 are assigned to the elements indexed by the indexes following > > the NA's. Is this a reasonable behavior. Thanks in advance for > > explanation. > > A is a 1D array but it behaves just like a vector. > Wierder things happen with multi-dimensional arrrays > > > A <- array(NA, dim=c(6,1,1)) > > A[idx,1,1] <- B > > A > , , 1 > > [,1] > [1,] 10 > [2,] NA > [3,] NA > [4,] NA > [5,] NA > [6,] NA > > One problem with what happens for matrices is that > > > idx <- c(1...
2018 May 18
1
exclude
Thank you Bert and Jim, Jim, FYI , I have an error message generated as Error in allstates : object 'allstates' not found Bert, it is working. However, If I want to chose to include only mos years example, 2003,2004,2007 and continue the analysis as before. Where should I define the years to get as follow. 2003 2004 2007 AL 2 1 1 NY 1 1 2 Thank you
2012 Oct 02
0
[LLVMdev] How best to represent assume statements in LLVM IR?
Hi Philip, > Does anyone have any suggestions on how to best represent an assumption > statement(*) in IR? good question! There have been various attempts, for example Nick tried teaching the optimizers to not prune the branch to unreachable in br %cond, label %assumption_holds, %assumption_doesnt_hold assumption_doesnt_hold: unreachable This then leads to %cond being replaced
2012 Oct 01
3
[LLVMdev] How best to represent assume statements in LLVM IR?
Does anyone have any suggestions on how to best represent an assumption statement(*) in IR? In particular, I want to expose the information implied by the assumption to the optimization passes without emitting code (after optimization) to check the assumption itself. I've tried a couple of options so far, and none have gotten me quite the right semantics. Has anyone else implemented