search for: functionnam

Displaying 20 results from an estimated 84 matches for "functionnam".

Did you mean: functionname
2008 Dec 19
1
[LLVMdev] strange behaviour after extracting optimization pass code
...tand what I am doing wrong. Basically all I've done is extracting code for optimization of a llvm-function in a llvm-module and put it into a separate function for better readability. The original code looks like follows (and works as expected): ----------------------------- std::string functionName = "main"; llvm::Module* mod = some arbitrary valid modulepointer; llvm::ExistingModuleProvider mp(mod); llvm::FunctionPassManager fpm(&mp); fpm.add(new llvm::TargetData(mod)); fpm.add(llvm::createInstructionCombiningPass()); fpm.add(llvm::createReassociatePass...
2009 Aug 21
4
Where to put source code?
...ng? I have not gone into the documentation about writing "packages" and "extensions" other than to glance at them and decide that can't POSSIBLY be the answer I'm looking for. I'm just looking for the local equivalent of (in matlab) writing a function, saving it as functionName.m and then being able to call functionName(). Or in Python of writing a module.py and then typing "import module" at the prompt. Again this feels like an extraordinarily stupid question. But for some weird reason I'm coming up with nothing in the FAQ or in Rseek. Peter
2008 Dec 19
2
[LLVMdev] strange behaviour after extracting optimization pass code
...stand what I am doing wrong. Basically all I've done is extracting code for optimization of a llvm-function in a llvm-module and put it into a separate function for better readability. The original code looks like follows (and works as expected): ----------------------------- std::string functionName = "main"; llvm::Module* mod = some arbitrary valid modulepointer; llvm::ExistingModuleProvider mp(mod); llvm::FunctionPassManager fpm(&mp); fpm.add(new llvm::TargetData(mod)); fpm.add(llvm::createInstructionCombiningPass()); fpm.add(llvm::createReassociatePass());...
2012 Jun 11
0
SSOAP Parameter Structures: Nested Arrays
...t; encoding="utf-8"?> <soap12:Envelope xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:soap12=" http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <FunctionName xmlns="http://tempuri.org/"> <client>XXXXX</client> <apiKey>XXXXX</apiKey> <batchMessage> <BatchMessage Message="XXXXX" MessageID="XXXXX" LocaleCode="XXXXX" Message...
2016 Mar 01
2
Insert CallInst within a function passing same parameters of the calling function.
...nction &F) { ValueToValueMapTy VMap; Function *new_function = CloneFunction(&F, VMap, false); new_function->setName(functionName + “_newfunction"); F.getParent()->getFunctionList().push_back(new_function); Function::ArgumentListType::iterator it = F...
2009 Oct 29
1
change in default behavior of ?functionname in R 2.10?
Hi everyone, I just installed R 2.10 using the Windows binary. At some point in the past using the Windows binary installation, the default behavior of ?functionname changed from plain text to a nice html interface. Now with R 2.10, the default behavior has changed back to the plain text help. I assume this has some thing to do with these changes listed for R 2.10, but I don't quite understand what it's saying or how to change my system back to the...
2013 Apr 10
1
question re: error message --- package error: "functionName" not resolved from current namespace
hello everyone we are developing a package that has worked up until R3.0 which we just tested. the issue is as above .... when we call a function that works in R 2.15.2 from R 3.0 we get an error Error in .Call("antsImageRead", filename, pixeltype, dimension) : "antsImageRead" not resolved from current namespace (ANTsR) this Error occurs when the .Call is made from
2011 Aug 09
1
Matlab to R
I am trying to convert a matlab code to R. Most of the conversion statements are simple, but problem is with return. Since it's a recursive function it's a bit complicated. Anyway in matlab we can have return statment like [price, notional] = functionname() and also for the same function... notional(1) = functionname() how to do this in R? i have tried using data frame but still getting errors! Yes the functioname() function is recursive...but am guessing it shouldn't matter. also there is no "return" statement in MatLab.......so...
2009 Jun 13
1
Portuguese translation problem (PR#13756)
...r sometime I've decided to report. As this is a frequent message when beginners start using R, it gives an unfortunate bad impression on the overall quality of the software which is excellent. The actual message (with the translation error) is: Erro: n?o foi posss?vel encontrar a fun??o "functionname" The correct message should be: Erro: n?o foi poss?vel encontrar a fun??o "functionname"
2010 Feb 26
1
match.call to obtain the name of a function
...bles me to keep track of which function generated a particular graphic came. match.call() puts parentheses at the end of the name. I don't want parentheses in a filename. The following kludgey function gives the desired result. > JANK function(x, y) { one<-deparse(match.call()) functionName<-gsub("\\(.*", "", one, perl=T) cat("The name of this function is ", functionName, "\n") } > JANK(55, pi^2) The name of this function is JANK > JANK() The name of this function is JANK Is there not a more direct way? To paraphrase Douglas Ba...
2009 Dec 04
1
no html help upon upgrading to 2.10
I just upgraded from 2.8.1 to 2.10 on Windows Vista. BIG MISTAKE apparently because now when I type: > help(functionname) or ?functionname I get only a small text window giving some very basic info on the topic, e.g.: base-package package:base R Documentation The R Base Package Description: Base R functions Details: This package contains the basic functions which let R...
2017 Jun 27
3
Testing utility for building and updating CFG
...side is that it tends to be pretty verbose and not easy to update (e.g. adding a new edge often involves changing the type of terminator instruction). My idea is to create a simple format for building arbitrary CFG’s and new utilities for updating it. It can look something like this: b ModuleName FunctionName // Build module ‘ModuleName’ with a single // function ‘FunctionName’. a entry if // Add new basic blocks (entry and if) and // connect them with an edge. a if if.then // Add new basic block (if.then) and create...
2010 Aug 19
3
[LLVMdev] using external functions from llvm
The blog post I linked to implied that adding a symbol in the form lle_X_FUNCTIONNAME would allow you to call a function called FUNCTIONNAME. Is this not the case? On Thu, Aug 19, 2010 at 6:46 PM, <o.j.sivart at gmail.com> wrote: > You are adding the symbol as "lle_X_create_number_object" yet your error > message implies you have tried to lookup and use &quo...
2010 Apr 08
3
how does one print code
...w does one do this? (I mean getting the code into a file, not fixing the bug.) I suppose I could copy and paste, but that's a bit error prone for various reasons. I want the same arrangement of code formatting as in the original---copy and paste often messes this up. I tried using as.character(functionname) but that wasn't at all appreciated. I tried searching the archives of this forum but couldn't figure out exactly what to search for (got too many hits). I also tried Google, but that was also no help. Thanks David -- View this message in context: http://n4.nabble.com/how-does-one-print...
2008 Apr 29
1
how to solve a power series linear coefficient equation
...tion of values 100,...300, i.e. 100,...300 are independent variables (x). The function is a power series: y=a+bx+cx^2 How do I obtain the values of a,b,c by minimisation of the sum of squares of deviations? So far looking at the documentation 'r-intro' section 10, I tried the following: functionname<-function(a,b,c){ + a<-sum(a) + b<-sum(b) + c<-sum(c) + y<-(a+bx+cx^2) + x<-(x) + } The documentation states: "...using a call such as...". What does this mean? Yours, rhelp at conference.jabber.org gnu/linux mandriva 2008 r 251 (27-06-07)
2006 Aug 28
1
Bug/problem reporting: Possible to modify posting guide FAQ?
...nd R-devel do something similar? Sign me <Tired of all the finger pointing> http://www.r-project.org/posting-guide.html "If the question relates to a contributed package , e.g., one downloaded from CRAN, try contacting the package maintainer first. You can also use find("functionname") and packageDescription("packagename") to find this information. Only send such questions to R-help or R-devel if you get no reply or need further assistance. This applies to both requests for help and to bug reports." How about If the question relates to a contrib...
2006 Aug 28
1
Bug/problem reporting: Possible to modify posting guide FAQ?
...nd R-devel do something similar? Sign me <Tired of all the finger pointing> http://www.r-project.org/posting-guide.html "If the question relates to a contributed package , e.g., one downloaded from CRAN, try contacting the package maintainer first. You can also use find("functionname") and packageDescription("packagename") to find this information. Only send such questions to R-help or R-devel if you get no reply or need further assistance. This applies to both requests for help and to bug reports." How about If the question relates to a contrib...
2010 Aug 20
0
[LLVMdev] using external functions from llvm
Ok, so calling lle_X_FUNCTIONNAME instead of FUNCTIONNAME works (is there any reason the post used the lle_X_ prefix other than convention? was it once possible to call external functions as I was originally trying, or, why did the blog post think it was possible?) I'm now running into trouble when trying to access arguments...
2012 Apr 25
2
[LLVMdev] Crash in JIT
...ctions in a module, and I seem to be coming across a crash in some generated code. Using the llvm-c interface I build up the module which dumps like this: ; ModuleID = 'MyModule' target datalayout = "i686-apple-darwin11" target triple = "i686-apple-darwin11" define i32 @functionName(i32 %m, i32 %x, i32 %b) { entry: %mx = mul i32 %m, %x %y = add i32 %mx, %b ret i32 %y } Which looks OK to me. Note I'm not 100% sure (actually, I suspect is wrong) about the 'target datalayout' but with or without that line makes no difference to my results. When I attempt to r...
2011 Mar 20
2
Convert Sweave document to a function
...so that they can be easily varied. My explanation of the code is still valid, and it seems to me that, if I only knew how to manage the trick, I would need to change almost nothing in the latex. The document contains about 6 different code chunks, and 7 different chunks of latex. I tried putting functionname <- function(N,theta) { into the first code chunk and } into the last code chunk, but Sweave said this was poor grammar and rejected it. Is there a reasonable way to make my .Rnw source into a function definition? I would like maintainability of the code to be a criterion for "reasonable&q...