search for: subfunctions

Displaying 20 results from an estimated 95 matches for "subfunctions".

Did you mean: subfunction
2001 Jan 18
0
summary/ returning variables from subfunction
Colleagues ---------------------------------- System info: R version rw1020 on NT ESS using emacs ver. 20.4 ---------------------------------- Below is a summary on returning variable from subfunction, Thanks to Brian Ripley and Douglas Bates: To access the variables within a function, return a list or data structure assigned to a variable in the calling function. For more than one varaible,
2009 Nov 10
1
source() vs attach()0
Hello, After hours of googling I could not resolve the following (although it seems simple): I would like to put subfunctions in a separate .R file that is then called with source() from inside several "main" functions. A crude example would be as follows: **** file subtest.R ********** subtest <- function() { foo <<- foo+1 } ****************************** *** main function ************ test&lt...
2010 Feb 26
2
Problem accessing sub-methods of functions stored in a vector
...t;- function(id) { # MANY VARIABLES DECLARED list( set_id = function(newid) { id <<- newid }, get_id = function(newid) { return(id) }, # LOTS MORE SUB FUNCTIONS ) } If I create a variable to hold this function, I can then access all the subfunctions without problem Example: myAgent = agent(1) myAgent$get_id() # Works fine However, once this function is stored in a vector, I can no longer access the subfunctions. agents = c(agent(1), agent(2)) agents[[1]] # This shows the set_id function only, unnamed agents[[1]]$get_id() # Leads to error...
2002 Aug 28
1
memdisk possible bug
I just wanted to pass on some information regarding the behavior of memdisk that I was observing. I have been trying to set up pxelinux/memdisk on a network with a series of machines. I am trying to boot a 2.88MB DOS image. This image worked fine on all but one of our machines. The machine had a usb floppy device. Now the machine would boot the DOS image fine if the usb floppy device was
2013 Oct 29
0
[LLVMdev] Loop vectorizer dosen't find loop bounds
----- Original Message ----- > Thanks for the alternatives! > > I am trying the 'extracting sub-function' approach. However, it seems > I > can't get the 'subfunction' to pass the verifier. This is my > subfunction: > > define void @main_extern([8 x i8]* %arg_ptr) { > entrypoint: > %0 = getelementptr [8 x i8]* %arg_ptr, i32 0 > %1 =
2013 Oct 29
2
[LLVMdev] Loop vectorizer dosen't find loop bounds
Thanks for the alternatives! I am trying the 'extracting sub-function' approach. However, it seems I can't get the 'subfunction' to pass the verifier. This is my subfunction: define void @main_extern([8 x i8]* %arg_ptr) { entrypoint: %0 = getelementptr [8 x i8]* %arg_ptr, i32 0 %1 = bitcast [8 x i8]* %0 to i64* %2 = load i64* %1 %3 = getelementptr [8 x i8]*
2016 Jul 15
2
[PATCH v3 0/4] nouveau RPM fixes for Optimus (final)
On Fri, Jul 15, 2016 at 12:10 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote: > On Fri, Jul 15, 2016 at 9:12 AM, Peter Wu <peter at lekensteyn.nl> wrote: >> Hi, >> >> Here are two patches to fix an issue reported on kernel bugzilla (infinite loop >> due to unchecked function) and a more important fix to fix hanging Optimus >> machines when runtime PM
2011 Sep 12
0
[LLVMdev] multi-threading in llvm
Hi Alexandra, I don't know much, maybe this topic should be bridged with polly-dev (adding it to CC) to bring it more attention. Indeed, polly uses ScopPass, that creates serious limitations in compatibility with other passes. To my understanding, scops are used because ISL loop analysis tool uses scops. In fact, just for handling OpenMP directives scops are not required, unless one need to
2011 Oct 12
2
How to transfer the variable into function in this code?
as shown in the code, four variables input: diff_expr,diff_coex, klist, Pop_size, are included in the function. However, within the function, another variable "vector" is utilized in some subfunction. How they get its value? thx get_quantiles <-function(diff_expr,diff_coex,klist,pop_size){ ##### The function to get the "node_score_term" and "edge_score_term" of
2009 Sep 08
1
optim() argument scoping: passing parameter values into user's subfunction
Dear useRs, I have a complicated function to be optimized with optim(), and whose parameters are passed to another function within its evaluation. This function allows for the parameters to enter as arguments to various probability distribution functions. However, I am violating some scoping convention, as somewhere within the hierarchy of calls a variable is not visible. I will give a
2016 Jul 15
1
[PATCH v3 0/4] nouveau RPM fixes for Optimus (final)
On Fri, Jul 15, 2016 at 12:31 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote: > On Fri, Jul 15, 2016 at 12:27 PM, Alex Deucher <alexdeucher at gmail.com> wrote: >> On Fri, Jul 15, 2016 at 12:10 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote: >>> On Fri, Jul 15, 2016 at 9:12 AM, Peter Wu <peter at lekensteyn.nl> wrote: >>>> Hi,
2010 Feb 23
3
Best style to organize code, namespaces
...explicitly. Also there is no enforcement of code isolation (i.e. anyone can call Foo.subf). Style 3 is more explicitly object oriented. It has the advantage of style 2 in that you don't need to pass x around, and the advantage of style 1 in that you can still write tests and easily debug the subfunctions. However to actually call the main function you have to type "Foo(x)$Main()" instead of "Foo(x)", or else write a wrapper function for this. Either way there is more typing. So anyway, what is the best way to handle this? R does not seem to have a good way of managing namesp...
2011 Sep 08
4
[LLVMdev] multi-threading in llvm
Hi, I want to execute the iterations of a loop in parallel, by inserting calls either to pthreads or to the gomp library at the LLVM IR level. As a first step, I inserted an omp pragma in a C file and compiled it with llvm-gcc to check the generated LLVM code. If I understand correctly, to parallelize the loop in LLVM IR, I have to separate the loop in a new function, put all required parameters
2016 Jul 15
2
[PATCH v3 0/4] nouveau RPM fixes for Optimus (final)
On Fri, Jul 15, 2016 at 12:10:23PM -0400, Ilia Mirkin wrote: > On Fri, Jul 15, 2016 at 9:12 AM, Peter Wu <peter at lekensteyn.nl> wrote: > > Hi, > > > > Here are two patches to fix an issue reported on kernel bugzilla (infinite loop > > due to unchecked function) and a more important fix to fix hanging Optimus > > machines when runtime PM is enabled (with
2005 Aug 30
8
Who can help me?
I have own function wrote. I used an algorithm, which was written in Matlab. in matlab: ... gamma = inv(v)*g; ... #v = matrix of variable size, v=vv(k) => k=2 => dimension of v 2x2 #g = a line vector with 4 elements e.g. g=[1,0,2,0]; my rewritten r-file: ... gamma = solve(v)*g; ... which is my error? Who can help me? thank you in advance. Chris -- Lust, ein paar Euro nebenbei zu
2016 Jul 15
0
[PATCH v3 0/4] nouveau RPM fixes for Optimus (final)
On Fri, Jul 15, 2016 at 12:27 PM, Alex Deucher <alexdeucher at gmail.com> wrote: > On Fri, Jul 15, 2016 at 12:10 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote: >> On Fri, Jul 15, 2016 at 9:12 AM, Peter Wu <peter at lekensteyn.nl> wrote: >>> Hi, >>> >>> Here are two patches to fix an issue reported on kernel bugzilla (infinite loop
2007 Apr 18
1
smbclient tar function : no password asked ?
Hello, We're using samba 3.0.24 on a Linux box, to access and backup some XP boxes. smbclient access is okay, but there is something quite weird with the tar subfunction ----- $ smbclient //xpbox/Documents -U someuser -d 2 -Tc /tmp/tarfile . added interface ip=192.168.1.xxx bcast=192.168.1.255 nmask=255.255.255.0 session setup failed: NT_STATUS_LOGON_FAILURE ----- Smbclient does NOT ask us
2010 Sep 08
1
Celt 0.7.1 Fixed math
Hi, I'm using Celt 0.7.1 in fixed math mode. In the celt_encode function, if the variable has_pitch is true, the function pitch_search is called. Within this function the find_best_pitch subfunction is called. Here the variable "float score;" is defined. Is this right? I was expecting not to see any float declaration in the fixed math code. Is it possible to redefine it as
2018 Feb 28
1
[PATCH v2 2/6] PCI: Scan all functions when running over Jailhouse
...&l) && > l != 0x0000 && l != 0xffff) { > DBG("Found device at %02x:%02x [%04x]\n", busn, devfn, l); Shouldn't that take the situation into account where the MFD bit is set on a regular devfn, i.e. (devfn % 8) == 0? In that case you'd scan the subfunctions twice. Thanks, tglx
2007 Jul 12
1
sub-function default arguments
Hi. I have defined a function, f1, that calls another function, f2. Inside f1 an intermediate variable called nm1 is created; it is a matrix. f2 takes a matrix argument, and I defined f2 (schematically) as follows: f2<-function(nmArg1=nm1,...){nC<-ncol(nmArg1); ... } so that it expects nm1 as the default value of its argument. f1 is defined (schematically) as: