search for: arguement

Displaying 20 results from an estimated 130 matches for "arguement".

2012 Apr 22
2
[LLVMdev] Problem about the type of Function's arguement in llvm
in the tutorial of official llvm doc, chapter 3, it deals with arguement of function as follow: for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size(); ++AI, ++Idx) { AI->setName(Args[Idx]); // NamedValues is map<string, Value*> NamedValues[Args[Idx]] = AI; and when it try to get the value of arguement, it simply does: Val...
2012 Apr 23
1
[LLVMdev] Problem about the type of Function's arguement in llvm
I read the tutorial doc and some info of SSA, finally understand it. Thanks for your help. And the segmentation error of loading arguementation occurs, (gdb error info) Program received signal SIGSEGV, Segmentation fault. 0x0855bb68 in llvm::LoadInst::LoadInst(llvm::Value*, char const*, bool, llvm::Instruction*) () code is like follows: //#include necessary header files int main(){ InitializeNativeTarget(); LLVMContext Contex...
2012 Apr 22
0
[LLVMdev] Problem about the type of Function's arguement in llvm
hi On Sun, Apr 22, 2012 at 8:36 PM, Jianfei Hu <hujianfei258 at gmail.com> wrote: > in the  tutorial of official llvm doc, chapter 3, it deals with arguement of > function as follow: > > for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size(); >        ++AI, ++Idx) { >     AI->setName(Args[Idx]); > >     // NamedValues is map<string, Value*> >     NamedValues[Args[Idx]] = AI; > > and when it try to g...
2005 Mar 04
11
R: simulation
hi all a simple question i want to run simulations in r. i however want the experiments to be repeated at a later time with exactly the same numbers by other users. can i set the random number seed for rnorm in some way? e.g. is there some arguement that goes with rnorm? please supply an example regards Allan
2010 Dec 18
1
how to use expression as function arguements?
...le of use integ(x^2+x+100,100) ##################################### it returns an error says no obj 'x' how do I 'tell' R to treat 'f' as an input expression? Thanks. casper -- View this message in context: http://r.789695.n4.nabble.com/how-to-use-expression-as-function-arguements-tp3093940p3093940.html Sent from the R help mailing list archive at Nabble.com.
2023 Nov 30
1
back tick names with predict function
...CI's > # Set up x points > x = seq(min(cob$`plant-density`), max(cob$`plant-density`), length = 1000) > > # Use predict to get CIs for a plot > # Add CI for regression line (y-hat uses 'c') > # usual trick is to assign x to actual x-var name in middle dataframe > arguement > CI.c = predict(mod2, data.frame( `plant-density` = x), interval = 'c') # > fail > > # Add CI for prediction value (y-tilde uses 'p') > # usual trick is to assign x to actual x-var name in middle dataframe > arguement > CI.p = predict(mod2, data.frame(`plant...
2006 Jan 30
5
Help with R: functions
Hello R-users I am new to R and trying to write some functions. I have problems writing functions that takes a data set as an arguement and uses variables in the data. I illustrate my problem with a small example below: sample data #------------------ visual24<-rnorm(30,3,5) visual52<-rt(30,7) dats<- data.frame(cbind(visual24,visual52)) remove(visual24, visual52) # first code #-------------- st &...
2006 Jan 25
1
Agile arguement error
Working my way through chapter 8 of "Agile Web Development...", I''m getting the following error when clicking the add_to_cart button. ArgumentError in Store#add_to_cart wrong number of arguments (0 for 1) What am I doing wrong? I know it''s got to be some thing stupid. Request: Parameters: {"id"=>"1"} session dump: --- :cart:
2004 Apr 28
2
openssh continues to process dash arguements after hostname
Processing dash arguments after the hostname is inconsistant with getopt() usage. It is also inconsistant with other ssh/rsh implementations. It is also not documented. openssh accepts treats "ssh host -l user" as "ssh -l user host" when infact it should be attemption to execute "-l user" on "host" as the original user. It looks like someone wanted to
2012 Jul 27
1
Eleaps in package subselect crashes when using include arguement
I'm using eleaps to build a forward selection algorithm iteratively, but the program unexpectedly crashes. In fact, it completely closes my session in RStudio. The first 39 steps work fine, but on the 40th step, it unexpectedly stops with no errors. I've isolated the error to the code snippit below. There are 39 predictors, and I'm searching for the 40th best. I've passed in a
2023 Nov 30
1
back tick names with predict function
...a = cob) # x sequence for plotting CI's # Set up x points x = seq(min(cob$`plant-density`), max(cob$`plant-density`), length = 1000) # Use predict to get CIs for a plot # Add CI for regression line (y-hat uses 'c') # usual trick is to assign x to actual x-var name in middle dataframe arguement CI.c = predict(mod2, data.frame( `plant-density` = x), interval = 'c')? # fail # Add CI for prediction value (y-tilde uses 'p') # usual trick is to assign x to actual x-var name in middle dataframe arguement CI.p = predict(mod2, data.frame(`plant-density`? = x), interval = '...
2013 Nov 18
1
wrong number of arguements (1 for 0) on ActiveRecord::Base#send
So I''m not exactly using Rails, but just ActiveRecord. Though I felt this would be more appropriate in the Rails forum than the general Ruby forum. I''m working on an app that interacts with databases, without having a database of its own. I have a class called Modeller, and a Modeller#retrieve_model(name) method that takes a name, looks for a table matching that name, creates a
2003 Nov 19
1
Specifying arguements in user defined functions
Dear R subscribees, First, I am new to R and I apologize if the question is naive. I am trying to find out where arguments specifications can be found. For example, the code below (at the very bottom of this email) contains the argument 'digits' in the function 'lin' which printout my output to the 3rd decimal place. Somebody showed me the 'digits' argument, but did
2008 Jan 25
1
[LLVMdev] variable arguement intrinsics
hi I want to use two intrinsic functions which should be placeholders for some instructions which should not be executed by the backend. So these two intrinsics should just keep the data dependencies while i try to separate set of instructions(with more of data flow) to be executed on hardware. One intrinsic which takes care of the data dependencies required for proper execution of the
2007 Oct 09
5
continue for loop in case of erros
Dear all, I have a for loop which includes nls model estimation. The loop breaks after the first non-convergence error. How can I make the loop continue and try to estimate all models? I suppose it should be sth like: if(...) { next } but I have no idea how to setup the arguements... Thank you! Irene
2008 Mar 17
5
DRBD question.
....so isn't on the machine after installing the RPMs. (Can't do the insmod drbd.so). Does anyone have a quick and easy(?) step by step to get it installed? He'll figure out the config if he can get it installed properly. Right now, he's running from source OK, but you all know the arguements for source versus rpm. Thanks for any help. I'll try and get caught up on what he's doing to better answer any questions presented. Steve Campbell
2004 Sep 10
3
problem with seek_absolute in libFLAC++
...t seek at all. Using gdb, I have narrowed down the problem somewhat, but being the novice programmer that I am, I still don't know whats wrong. When I call the seek_absolute() function eg. seek_absolute(3561525); and step inside it with gdb, then print the value of "sample" (the arguement), it is NOT 3561525, rather it is some huge number like 4621539102901141517. I figure it could be something to do with types or something, seek_absolute expects a FLAC__uint64, I have tried a few things along this line without success eg. FLAC__uint64 seekpos = 3561525; seek_absolute(seekpos)...
2005 May 18
2
applying a function over an array
Is there a way to apply a function with several arguements over an array? For instance if you had a function d<-function(a,b,c) {a+b+c} and a 4,3 array, could you apply the function over each line of the array? tapply seems to only allow one argument, and I just can't think of a way to explicitly tell R that I am passing it 3 distinct objects i...
2008 Jan 02
2
[LLVMdev] immediate predecessors
hi, how to get the number of immediate predecessors for each basic block (arguements of remarks statement at the beginning of the basic block) thank you aditya ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
2009 Aug 14
1
Saving Iterative Components
...process (i know R is not the best place for so much looping but i have to so tough!) and store the resulting data from each iteration to then be graphed. In simple form the script looks like this for(i in tracks) { a <- (subset(data, data$Id==i)) result.dataset <- function(a, other.arguements) ### this function is the other iterative process, but its in another script and is imported in so dont worry about it. } I want the result.dataset to be unique for each iteration, something like result.dataset."i". makes sense to me but not to R! Im teaching myself here and appa...