search for: arg3

Displaying 20 results from an estimated 255 matches for "arg3".

Did you mean: arg
2015 May 09
4
[LLVMdev] [LSR] hoisting loop invariants in reverse order
...{a*b, +, b} bar(pixel_idx * c); // {a*b*c, +, b*c} bar((pixel_idx + 1) * c); // {(a*b+1)*c, +, b*c} bar((pixel_idx + 2) * c); // {(a*b+2)*c, +, b*c} bar((pixel_idx + 3) * c); // {(a*b+3)*c, +, b*c} } } and LSR produced void foo(float *input, int a, int b, int c, int n) { * int arg3 = (a * b + 3) * c;* * int arg2 = (a * b + 2) * c;* * int arg1 = (a * b + 1) * c;* * int arg0 = a * b * c;* for (int node_x = 0; node_x < n; ++node_x) { bar(arg0); bar(arg1); bar(arg2); bar(arg3); arg0 += b * c; arg1 += b * c; arg2 += b * c; arg3 += b * c; }...
2007 Apr 18
0
[PATCH] paravirt_ops: Clean up paravirt patchable wrappers
..."=c" (__ecx) \ - : "0" ((u32)(arg1)), \ - "1" ((u32)(arg2)), \ - paravirt_type(__op), \ - paravirt_clobber(CLBR_ANY) \ - : "memory", "cc"); \ - }) - -#define PVOP_CALL3(__rettype, __op, arg1, arg2, arg3) \ - ({ \ - __rettype __ret; \ - if (sizeof(__rettype) > sizeof(unsigned long)) { \ - unsigned long long __tmp; \ - unsigned long __ecx; \ - asm volatile(paravirt_alt(PARAVIRT_CALL) \ - : "=A" (__tmp), "=c" (__ecx) \ - : "a"...
2007 Apr 18
0
[PATCH] paravirt_ops: Clean up paravirt patchable wrappers
..."=c" (__ecx) \ - : "0" ((u32)(arg1)), \ - "1" ((u32)(arg2)), \ - paravirt_type(__op), \ - paravirt_clobber(CLBR_ANY) \ - : "memory", "cc"); \ - }) - -#define PVOP_CALL3(__rettype, __op, arg1, arg2, arg3) \ - ({ \ - __rettype __ret; \ - if (sizeof(__rettype) > sizeof(unsigned long)) { \ - unsigned long long __tmp; \ - unsigned long __ecx; \ - asm volatile(paravirt_alt(PARAVIRT_CALL) \ - : "=A" (__tmp), "=c" (__ecx) \ - : "a"...
2007 Sep 06
1
labelling specific points xyplot
...en points : I've figures this out, but I am passing my whole dataframe as an extra argument (arg1) which I realize is probably useless, so if anybody can give me a way to work around this... xyplot(pp~nn,groups=vari,data=test,auto.key=list(space="right"),arg1=test,arg2="2",arg3="loc", panel=function(x,y,groups,arg1,arg2,arg3,...) { panel.superpose(x,y,groups,...) ?tiq<-rep("",times=length(x)) ?tiq[groups==arg2]<-as.character(arg1[groups==arg2,arg3]) ?tiq<-as.character(?tiq) panel.text(x,y,labels=?tiq,pos=1,cex=0.5,...) }...
2010 Feb 10
1
How to solve: Error in * unused argument(s) ?
Hi all, For some reason, I would like to use functions bellow (see example code bellow), but instead I get the following error message: *Error in foo2(...) : unused argument(s) (arg3 = 3)* #--------------------- # example code #--------------------- foo1 <- function(arg1,...) { print(arg1) foo2(...) foo3(...) } foo2 <- function(arg2) { print(arg2) } foo3 <- function(arg3) { print(arg3) } foo1(arg1 = 1, arg2 = 2, arg3 =3) #--------------------- I tried lookin...
2017 Jun 06
3
Force argument to have quotes
...th comments. ### This is a sample structure of the configuration file scoreConfig <- structure(list(Function = c("myFunction1", "myFunction1", "myFunction1", "myFunction2", "myFunction2"), Argument = c("arg1", "arg2", "arg3", "arg1", "arg2"), Value = c("5", "10", "Hello", "5", "10"), Class = c("numeric", "numeric", "character", "numeric", "numeric")), .Names = c("Function", "Ar...
2004 Jan 04
2
Voicemail Out call
...ave a voicemail message, then do post-processing. ; o Call configured phones, with an announcement that a message ; is waiting, and the option to listen to the voicemail(s) ; ${ARG1} = u or b for 'unavailable' or 'busy' message ; ${ARG2} = mailbox ; ${ARG3} = Call user flag ; USAGE: ; exten => s,15,Macro(leave_voicemail,u,310,1) exten => s,1,ResponseTimeout(30) exten => s,2,Voicemail2(${ARG1}${ARG2}) exten => s,3,GoToIf($[${ARG3} = 0]?s|5) exten => s,4,system(${SCRIPTS_DIR}/voicemail_callback.sh ${ARG2}) exten => s,5,...
2007 Jun 14
1
Using subset() in a user-defined function
Hello, I'm having a problem with using subset() inside a function I'm writing. Ignoring everything else in the function, the problem can be illustrated by (where master.frame is the data frame I'm using): function1 <- function(arg1="", arg2="", arg3=""){ temp.frame <- subset(master.frame, a == arg1 & b == arg2 & c == arg3) } This works fine if the user specifies all arguments, but if any one or more of the arguments isn't specified, say arg1 for example, the subset is empty because subset() goes looking for values...
2003 Nov 10
1
Periodic crash - avoid this syntax...
I have a machine that crashes every so often. I believe the following macro is responsible (gotoif,$[${ARG3}] in particular). The macro works as expected: if ARG3 is defined - hop over assignment. But my hunch is that it gradually chews up memory. ; This macro is puts voicemail in an alternate mailbox (if ARG3 defined - otherwise Mailbox matches extension). [macro-stdexten] exten => s,1,gotoif,$[${A...
2007 Jan 10
13
[DTrace] how to get socket read size
..., i want to track io over sockets, i found your socketsize.d that gave me how to track writes, but i''m at a loss how to track reads, frankly i don''t see how your write tracker works because it uses a probe in a function that only takes two arguments but you grab size of write via arg3? i would appreciate any hints on how to accomplish this task, and an explanation of how the args work if i''m missing something Thanks James Dickens information relied on: from socketsize.d /* ** Process Socket Write */ fbt:sockfs:so_update_attrs:entry /arg1 == 1/ { /* fetch...
2017 Jun 06
0
Force argument to have quotes
...### This is a sample structure of the configuration file > > scoreConfig <- structure(list(Function = c("myFunction1", "myFunction1", "myFunction1", > "myFunction2", "myFunction2"), Argument = c("arg1", "arg2", "arg3", > "arg1", "arg2"), Value = c("5", "10", "Hello", "5", "10"), Class = c("numeric", > "numeric", "character", "numeric", "numeric")), .Names = c("Function", &...
2012 Apr 26
6
print table on plot
Hello, I would like to be able to plot an array on a plot, something like: |arg1 | arg2 | arg3 val1| 0.9 | 1.1 | 2.4 val2| 0.33 | 0.23 | -1.4 val3| hello| stop | test I know Rwave is good to report but don't want to use it. ? Is there a package that allow quick and dirty plot of dataframes like this ? Thanks a lot -- View this message in context: http://r.789695.n4.nabble.com/p...
2019 Jun 14
2
Ejecutar un script de Python con argumentos desde R
Hola, amigos Se me acabo la sapienza. A ver: tengo un sript de Python script.py que neesita sus argumentos arg1 arg2 arg3, si desde la consola del sistema me pongo en la carpeta en la que lo tengo y hago: $ script.py arg1 arg arg3 Funciona perfecto. Pero desde R no lo consigo (entiendo que por no saber) Lo hago así (copio y pego): dir <- getwd() setwd('data/row/directoriocondatos/') py_run_string(...
2007 Apr 19
3
[RFC, PATCH 1/5] Paravirt_ops full patching.patch
...* * When there is a return value, the invoker of the macro must specify * the return type. The macro then uses sizeof() on that type to @@ -405,6 +404,21 @@ unsigned paravirt_patch_insns(void *site "0" ((u32)(arg1)), "1" ((u32)(arg2)), \ "2" ((u32)(arg3)), [_arg4] "mr" ((u32)(arg4))) +#define PVOP_CALL5(rettype, op, arg1, arg2, arg3, arg4, arg5) \ + __PVOP_CALL(rettype, op, \ + "push %[_arg5]; push %[_arg4];", \ + "lea 8(%%esp),%%esp;", \ + "0" ((u32)(arg1)), "1" ((u32)(a...
2007 Apr 19
3
[RFC, PATCH 1/5] Paravirt_ops full patching.patch
...* * When there is a return value, the invoker of the macro must specify * the return type. The macro then uses sizeof() on that type to @@ -405,6 +404,21 @@ unsigned paravirt_patch_insns(void *site "0" ((u32)(arg1)), "1" ((u32)(arg2)), \ "2" ((u32)(arg3)), [_arg4] "mr" ((u32)(arg4))) +#define PVOP_CALL5(rettype, op, arg1, arg2, arg3, arg4, arg5) \ + __PVOP_CALL(rettype, op, \ + "push %[_arg5]; push %[_arg4];", \ + "lea 8(%%esp),%%esp;", \ + "0" ((u32)(arg1)), "1" ((u32)(a...
2015 May 18
2
[LLVMdev] [LSR] hoisting loop invariants in reverse order
.../ {(a*b+1)*c, +, b*c} > > bar((pixel_idx + 2) * c); // {(a*b+2)*c, +, b*c} > > bar((pixel_idx + 3) * c); // {(a*b+3)*c, +, b*c} > > } > > } > > > > and LSR produced > > > > void foo(float *input, int a, int b, int c, int n) { > > int arg3 = (a * b + 3) * c; > > int arg2 = (a * b + 2) * c; > > int arg1 = (a * b + 1) * c; > > int arg0 = a * b * c; > > for (int node_x = 0; node_x < n; ++node_x) { > > bar(arg0); > > bar(arg1); > > bar(arg2); > > bar(arg3); > &...
2009 Dec 04
1
User's function
Hello, All, I want to write a function to do some works based on the arguments. For example, bind some variables (arguments) as this: myfunction <- function(arg1, arg2, arg3, ?) { x <- cbind(arg1, arg2, arg3, ?) } myfunction(arg1, arg2, arg3, ?) The function can automatically determine the number of arguments and bind them, which means if I assign 2 arguments, the function can bind those two arguments, or if I assign 3 arguments, the function can bind those...
2005 Oct 05
0
Unwieldy outbound macro
...rough the documentation for macro programming, I couldn't find the equivalent of a 'shift' statement you'd find in other programming languages. Can a kind soul suggest how I might tidy it up? Thanks in advance. [macro-outbound] ; ${ARG1} Number ; ${ARG2} Caller ID ; ${ARG3,4,5,6} Outgoing gateways in order of use exten => s,1,GotoIf($["${ARG2}" = ""]?4) exten => s,2,SetCIDNum(${ARG2}) exten => s,3,Goto(5) exten => s,4,SetCIDNum(${DEFAULTCID}) exten => s,5,SetVar(GATEWAY=${ARG3}) exten => s,6,SetVar(ARG3=${ARG4}) exten => s...
2012 Mar 01
2
Rscript example
Hi there, I am trying to find an example how to use Rscript Let's suppose I want to pass 3 arguments (I don't want [options] and -e [expressions] as described in help) *on the command line myRscript.R -arg1=value1 -arg2=value2 -arg3=value3 *In the script #! /path/to/Rscript args = commandArgs(TRUE); >From what I see args is just a string, do I do things correctly ? -- View this message in context: http://r.789695.n4.nabble.com/Rscript-example-tp4436130p4436130.html Sent from the R help mailing list archive at Nabble.com.
2009 Jul 24
9
getting extra characters with printf(copyin(a, b))
...rt the DTrace script, I get good output the first time. This is on OpenSolaris 2009.06. This is quite easy to reproduce. The script is the following, where arg1 is not a string but a pointer to the key from the command and arg2 is the length of that key. memcached*::command-get / (signed int) arg3 != -1 / { printf("get %s, FOUND KEY\n", stringof(copyin(arg1, arg2))); } memcached*::command-get / (signed int) arg3 == -1 / { printf("get %s, NOT FOUND\n", stringof(copyin(arg1, arg2))); } memcached*::command-add / (signed int) arg3 != -1 / { printf("add %s, FOUND...