search for: fns

Displaying 20 results from an estimated 92 matches for "fns".

Did you mean: fn
2013 Apr 19
0
[PATCH] x86/HVM: move per-vendor function tables into .init.data
...s of course still need to go to the global variable. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -113,7 +113,7 @@ static struct notifier_block cpu_nfb = { static int __init hvm_enable(void) { - struct hvm_function_table *fns = NULL; + const struct hvm_function_table *fns = NULL; if ( cpu_has_vmx ) fns = start_vmx(); @@ -126,8 +126,8 @@ static int __init hvm_enable(void) hvm_funcs = *fns; hvm_enabled = 1; - printk("HVM: %s enabled\n", hvm_funcs.name); - if ( !hvm_funcs.hap_...
2003 Jan 21
2
[patch] Two problems in testsuite (POSIX, perms)
...worked here on sh/zsh/bash so I assume this is the correct way to do it. If not, one could also do the assignment before the echo and then simply echo a $reason variable in the string. The second problem is that the daemon-gzip-upload test fails if run as root. This is alluded to in the rsync.fns file: # We need to set the umask to be reproducible. Note also that when we # do some daemon tests as root, we will setuid() and therefore the # directory has to be writable by the nobody user in some cases. The # best thing is probably to explicitly chmod those directories after # creation. I...
2011 Oct 16
1
grouped lattice plot with overall regression line
I'd like to draw a lattice plot with groups. The groups (the grouping condition, fns) are successfully marked with separate symbols, using the following code: xyplot(T~A|speaker,groups=fns,pch=1:3,key=list(space="right",points=list(pch=1:3)),type=c("g","p","r")) Here's a hard part. This draws regression lines for each group in each panel...
2003 Jul 05
1
make check's diff -u vs -c
...> To: rsync-cvs@samba.org > Message-ID: <20030704235659.352582C051@lists.samba.org> > > > Date: Fri Jul 4 23:56:59 2003 > Author: wayned > > Update of /data/cvs/rsync/testsuite > In directory dp.samba.org:/tmp/cvs-serv24766 > > Modified Files: > rsync.fns trimslash.test > Log Message: > Changed "diff -c" to "diff -u". > > > Revisions: > rsync.fns 1.55 => 1.56 > http://www.samba.org/cgi-bin/cvsweb/rsync/testsuite/rsync.fns.diff?r1=1.55&r2=1.56 > trimslash.test 1.1 => 1.2 > http://www.sam...
2007 Apr 04
1
REPLACE and REMOVE fns
I want to use the replace function on "R_Jeter_04_post" (see attached) so that S=1, D=1, T=1, HR=1, O=0, K=0, E=0, FC=0, and W,IW,and HP are removed, so that i have a simple list of 1's and 0's. I understand that I need to use the command "replace(x,list,values)" and "rm()" but I'm having trouble using them. (syntax errors and whatnot) Any help would be
2002 Oct 18
4
code to turn T into TRUE
Does anyone have code that will methodically process R sourcecode, turning T's into TRUE and F's into FALSE? I got bored doing this by hand, after the first 30-odd functions-- there are hundreds left to do. I don't want to simply deparse everything, because that would destroy my beautiful formatting. The reason it's not trivial, is that comment lines, quotes, and split lines need
2006 Sep 22
1
[RFC][PATCH][UPDATED] Intel(R) LaGrande Technology support
...reg space xen/include/asm-x86/msr.h - adds new VMX and SMX MSR flags xen/include/asm-x86/processor.h - adds new CR4 SMX flag xen/include/public/hvm/e820.h - add E820_PROTECTED mem type xen/arch/x86/smx/Makefile - self explanatory xen/arch/x86/smx/acmod.c - LT Authenticated Code (AC) module support fns xen/arch/x86/smx/early_printk.c - serial printk() for early in boot process xen/arch/x86/smx/errors.c - error parsing/display fns xen/arch/x86/smx/mtrrs.c - MTRR handling for AC module launch xen/arch/x86/smx/smx.c - main LT/SMX fns and entry points xen/arch/x86/smx/tpm.c - basic TPM support fns xe...
1999 Aug 26
0
use dyn.load to redefine R internal fns?
I would like to redefine some R print functions (Rprintf for example) so that they don't print to stdout, but save the output in a global string array. I can compile and link my definition of Rprintf into a library and load it with dyn.load. I don't get an error message, but afterwards the original function is still valid, my new version isn't executed. Is there a way to change R
2010 Apr 08
2
I can´t run the example shown in the inline package
I want to run some R script using the inline package (which allows to create and run inline C++ code in my humble understanding). So, after loading the required packages and copy and paste the example that runs C code (in the Reference Manual as a PDF), I have a compilation error. Any body has ever tried this inline package? -- View this message in context:
2011 Nov 29
2
Parameters setting in functions optimization
...as indicated in the tutorials : optim(c(40,0.5), fn=LogLiketot) >Error in 1 - ms : 'ms' is missing But ms is 0.5 ... So I've tried this form : optimx(c(30,50),ms=c(0.4,0.5), fn=LogLiketot) with different values for the two parameters : par fvalues method fns grs itns conv KKT1 KKT2 xtimes >2 19.27583, 25.37964 2249.698 BFGS 12 8 NULL 0 TRUE TRUE 57.5 >1 29.6787861, 0.1580298 2248.972 Nelder-Mead 51 NA NULL 0 TRUE TRUE 66.3 The first line is not possible but as I've not constrained the optimization ... but the s...
2008 Apr 16
2
[LLVMdev] flag_unit_at_a_time and pass scheduling in llvm-gcc
...n passes, though it may > influence selection. this flag is used quite a bit in llvm-backend.cpp, for example: if (flag_unit_at_a_time) { PM->add(createGlobalOptimizerPass()); // Optimize out global vars PM->add(createGlobalDCEPass()); // Remove unused fns and globs PM->add(createIPConstantPropagationPass()); // IP Constant Propagation PM->add(createDeadArgEliminationPass()); // Dead argument elimination } I thought I understood why but it seems that I don't :) Ciao, Duncan.
2009 Oct 26
2
basic statistics to csv
I know that my question is like a very newbie question, but at the moment I stacked with it and I need a quick solution. I need to make an overall statistical overview of various datasets, the summary() and numSummary() functions are fully sufficient. My question is, how can I export results to a spreadsheet-like file, as a .csv. For the summary() with an "x" dataset I can use this way:
2004 Apr 10
0
patches for copying atimes
...========================================================== RCS file: testsuite/atime.test diff -N testsuite/atime.test --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/atime.test 10 Apr 2004 23:28:36 -0000 @@ -0,0 +1,22 @@ +#! /bin/sh + +# Test rsync copying atimes + +. $srcdir/testsuite/rsync.fns + +set -x + +fromdir="$scratchdir/from" +todir="$scratchdir/to" + +mkdir "$fromdir" + +touch "$fromdir/foo" +touch -a -t 200102031717.42 "$fromdir/foo" + +TLS_ARGS=--atime + +checkit "$RSYNC -rtgvvv \"$fromdir/\" \"$todir/\"...
2008 Apr 17
4
[LLVMdev] flag_unit_at_a_time and pass scheduling in llvm-gcc
...ag is used quite a bit in llvm-backend.cpp, for example: > > > > if (flag_unit_at_a_time) { > > PM->add(createGlobalOptimizerPass()); // Optimize out > > global vars > > PM->add(createGlobalDCEPass()); // Remove unused > > fns and globs > > PM->add(createIPConstantPropagationPass()); // IP Constant > > Propagation > > PM->add(createDeadArgEliminationPass()); // Dead argument > > elimination > > } > > > > I thought I understood why but it seems that I don...
2011 Jul 02
2
Vector of functions
Hi there, I have a vector of some functions e.g. #-----------------------------# f.1 <- function(a) { return( a ); } f.2 <- function(a) { return( 1 - (tanh(a))^2 ); } f.3 <- function(a) { return( 1 / (1+exp(-a)) * (1 - (1 / (1+exp(-a)))) ); } func.l <- c(f.1, f.2, f.3); #-----------------------------# and would like to calculate the output value of a function in the vector,
2004 Apr 20
1
improved atime patch
...========================================================== RCS file: testsuite/atime.test diff -N testsuite/atime.test --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/atime.test 20 Apr 2004 21:06:20 -0000 @@ -0,0 +1,22 @@ +#! /bin/sh + +# Test rsync copying atimes + +. $srcdir/testsuite/rsync.fns + +set -x + +fromdir="$scratchdir/from" +todir="$scratchdir/to" + +mkdir "$fromdir" + +touch "$fromdir/foo" +touch -a -t 200102031717.42 "$fromdir/foo" + +TLS_ARGS=--atime + +checkit "$RSYNC -rtAgvvv \"$fromdir/\" \"$todir/\&quot...
2017 Jan 06
0
strsplit(perl=TRUE), gregexpr(perl=TRUE) very slow for long strings
...re_exec would solve the problem. Perhaps R is already doing that in gsub(perl=TRUE). Here is the test function: regex.perf.test <- function(N=c(1e4, 2e4, 4e4, 8e4)) { makeTestString <- function(n) paste(collapse="", rep("ab", n)) s <- lapply(N, makeTestString) fns <- list(SubTRE=function(si) gsub("a", "", si, perl=FALSE), SubPCRE=function(si) gsub("a", "", si, perl=TRUE), StrSplitTRE=function(si) strsplit(si, "a", perl=FALSE), StrSplitPCRE=function(si) strsplit(si,...
2001 Dec 01
1
rsync-2.5.0 patch for "make check" bug
...is 2.X systems. Tom -- Tom L. Schmidt, Manager/SysAdmin Characterization Equipment Micron Technology, Inc. 8000 S. Federal Way P.O. Box 6 Mail Stop 376 Boise, Idaho USA 83707-0006 mailto:tschmidt@micron.com http://www.4schmidts.com/ -------------- next part -------------- *** testsuite/rsync.fns.orig Tue Nov 27 00:59:34 2001 --- testsuite/rsync.fns Fri Nov 30 11:41:09 2001 *************** *** 149,156 **** echo "-------------">>${log} echo "check how the directory listings compare with diff:">>${log} echo "">>${log} ! ( c...
2008 Apr 16
0
[LLVMdev] flag_unit_at_a_time and pass scheduling in llvm-gcc
...e selection. > > this flag is used quite a bit in llvm-backend.cpp, for example: > > if (flag_unit_at_a_time) { > PM->add(createGlobalOptimizerPass()); // Optimize out > global vars > PM->add(createGlobalDCEPass()); // Remove unused > fns and globs > PM->add(createIPConstantPropagationPass()); // IP Constant > Propagation > PM->add(createDeadArgEliminationPass()); // Dead argument > elimination > } > > I thought I understood why but it seems that I don't :) IMO, we should avoid usi...
2023 Jun 06
2
[CFT][PATCH v3] fork, vhost: Use CLONE_THREAD to fix freezer/ps regression
...g a kthread still: > >> > >> 1. Userapce thread0 opens /dev/vhost-$something. > >> 2. thread0 does VHOST_SET_OWNER ioctl. This calls vhost_task_create() to > >> create the task_struct which runs the vhost_worker() function which handles > >> the work->fns. > >> 3. If userspace now does a SIGKILL or just exits without doing a close() on > >> /dev/vhost-$something, then when thread0 does exit_files() that will do the > >> fput that does vhost-$something's file_operations->release. > > > > So, at least in t...