search for: subst

Displaying 20 results from an estimated 145 matches for "subst".

Did you mean: subset
1997 Apr 29
0
R-alpha: frametools v.0.0000001
...ld be involved). So assignments to non-existing variables just create them as local variables within the function. Making a virtue out of necessity, that might actually be considered a feature... ---------------------------------------- "select.frame" <- function (dfr, ...) { subst.call <- function(e) { if (length(e) > 1) for (i in 2:length(e)) e[[i]] <- subst.expr(e[[i]]) e } subst.expr <- function(e) { if (is.call(e)) subst.call(e) el...
2011 Sep 20
2
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
...efile | 6 ++++++ tools/llvm-config/llvm-config.in.in | 3 ++- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index f3e94e8..cd943cc 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1606,9 +1606,11 @@ AC_SUBST(SHLIBPATH_VAR,$libltdl_cv_shlibpath_var) if test "${prefix}" = "NONE" ; then prefix="/usr/local" fi +libdir_suffix=$(echo ${libdir} | sed -r "s:.*[^0-9]([0-9]*):\1:g") eval LLVM_PREFIX="${prefix}"; eval LLVM_BINDIR="${prefix}/bin";...
2006 Oct 22
2
"glm" function question
...#39;t figure out what I need to put in it's place. Here's my code: library(foreign) library(car) foo = read.table("C:/Documents and Settings/Chris/Desktop/4330/criminals.dat", header=TRUE) reoff = foo[ ,1] race = foo[ ,2] age = foo[ ,3] gender = foo[ ,4] educ = foo[ ,5] subst = foo[ ,6] prior = foo[ ,7] violence = foo[ ,8] fit1h = glm(reoff ~ factor(subst) + factor(violence) + prior + factor(violence):factor(subst) + factor(violence):factor(educ) + factor(violence):factor(age) + factor(violence):factor(prior)) summary(fit1h) If you noticed, there's no part of...
2014 Dec 17
0
[PATCH] build: sort sources to build in a more deterministic way
...diff --git a/codepage/Makefile b/codepage/Makefile index 18a590f..af5258a 100644 --- a/codepage/Makefile +++ b/codepage/Makefile @@ -1,6 +1,6 @@ VPATH = $(SRC) PERL = perl -CPSRC = $(wildcard $(SRC)/*.txt) +CPSRC = $(sort $(wildcard $(SRC)/*.txt)) CPOBJ = $(notdir $(CPSRC)) GENFILES = $(patsubst %.txt,%.cp,$(CPOBJ)) diff --git a/com32/cmenu/Makefile b/com32/cmenu/Makefile index 6bb5231..b81b68e 100644 --- a/com32/cmenu/Makefile +++ b/com32/cmenu/Makefile @@ -32,8 +32,8 @@ LIBMENU = libmenu/syslnx.o libmenu/com32io.o libmenu/tui.o \ libmenu/menu.o libmenu/passwords.o libmenu/des.o libme...
2011 Sep 20
0
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
...s/llvm-config/llvm-config.in.in | 3 ++- > 5 files changed, 16 insertions(+), 4 deletions(-) > > diff --git a/autoconf/configure.ac b/autoconf/configure.ac > index f3e94e8..cd943cc 100644 > --- a/autoconf/configure.ac > +++ b/autoconf/configure.ac > @@ -1606,9 +1606,11 @@ AC_SUBST(SHLIBPATH_VAR,$libltdl_cv_shlibpath_var) > if test "${prefix}" = "NONE" ; then > prefix="/usr/local" > fi > +libdir_suffix=$(echo ${libdir} | sed -r "s:.*[^0-9]([0-9]*):\1:g") > eval LLVM_PREFIX="${prefix}"; > eval LLVM_BINDIR=&q...
2017 Sep 19
1
symbolic computing example with Ryacas
...t I wanted. library(Ryacas) x <- Sym("x");U <- Sym("U");x0 <- Sym("x0");C <- Sym("C") my_func <- function(x,U,x0,C) { return (U/(1+exp(-(x-x0)/C)))} FirstDeriv <- deriv(my_func(x,U,x0,C), x) PrettyForm(FirstDeriv) #slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)") slope <- Subst(FirstDeriv,x,x0) #PrettyForm(slope) - gives errors PrettyForm(Simplify(slope)) I was confused by the references to the yacas command. Now, I have chosen to omit it. Then I get what I want. Thanks, Vivek 2017-09-19 16:04 GMT+02:00 Bert Gu...
1997 Apr 14
1
R-alpha: select.frame
Here's the select.frame() function I babbled about before. Suggestions about coding style, etc., are welcome, I feel a bit green at this. select.frame<- function (dfr, ...) { subst.exp <- function(e) { for (i in 2:length(e)) { ei <- e[[i]] if (is.call(ei)) e[[i]] <- subst.exp(ei) else { n <- match(as.character(ei)...
2017 Sep 19
2
symbolic computing example with Ryacas
...wing : library(Ryacas) x <- Sym("x");U <- Sym("U");x0 <- Sym("x0");C <- Sym("C") my_func <- function(x,U,x0,C) { return (U/(1+exp(-(x-x0)/C)))} FirstDeriv <- deriv(my_func(x,U,x0,C), x) PrettyForm(FirstDeriv) slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)") PrettyForm(slope) I don't understand how I should use the Subst command. I want the slope of the first derivative at x=x0. How do I implement that? I would appreciate any help that I can get. Thanks, Vivek [[alternative HTML version deleted]]
2009 Nov 21
3
"subset" or "condition" as argument to a function
...re of the alternate methods like coplot, par.plot, xyplot etc... I am specifically interested in using conditions/subsets with "plot".. A simple fragmented example is shown here.. pltit <- function(y,x,dat,dat1,dat2,sbst) { plot(y~x, data=dat, subset=sbst) lines(y~x,data=dat1, subset=subst) points(y~x,data=dat2,subset=subst) } pltit(profit,weeks,dat=zone1, sbst='group==1&sales>200') Could you also suggest pointers/references/examples on efficient ways to plot simulated data overlaid with observed data? Have a good weekend! Thanx, Santosh [[alternative HTML versio...
2018 May 07
0
[clang] Running a single testcase
...; > But I run the test after symlinking clang-7 ---> clang... > > $ ./bin/llvm-lit -v ./tools/clang/test/Sema/asm.c > llvm-lit: /home/sdi/src/llvm/llvm/utils/lit/lit/llvm/config.py:334: > note: using clang: /usr/bin/clang > llvm-lit: /home/sdi/src/llvm/llvm/utils/lit/lit/llvm/subst.py:126: > note: Did not find c-index-test in > /home/sdi/src/llvm/build/./bin:/home/sdi/src/llvm/build/./bin > llvm-lit: /home/sdi/src/llvm/llvm/utils/lit/lit/llvm/subst.py:126: > note: Did not find clang-check in > /home/sdi/src/llvm/build/./bin:/home/sdi/src/llvm/build/./bin > l...
2001 Jan 25
0
proliferation of SAMBA links in W2K
...have come accross a puzzling problem that I cannot figure out with the documentation or Samba books... please forgive me if this has been discussed before in this forum, I have not seen such discussion. We have a customer that uses a script that basically maps to three samba shares, then uses the substitute command repeatedly. Every time a subst command is issued, a new Samba link is created instead of using an existing link. As a result this customer may end up with 20 or more links (more links are also created when using the command dir, for example) and his workstation freezes. This only ha...
2006 Jan 02
1
R crash with complex matrix algebra when using EISPACK=TRUE
...for me to investigate further. ## The code : source("http://www.daimi.au.dk/~olefc/TEST/fct.R") source("http://www.daimi.au.dk/~olefc/TEST/parm.crash.R") for(l.v in 1:4){ for(r.v in 1:4){ for(l.x in 1:4){ for(r.x in 1:4){ hvad <- inhomoWmat.complex(subst.ratematrix(parm.same.str.sym$Gamma[,,l.v,r.v]),subst.ratematrix(parm.same.str.sym$Gamma[,,l.x,r.x]), EISPACK=TRUE) print(c(l.v,r.v,l.x,r.x)) } } } } ## gives [1] 1 1 1 1 [1] 1 1 1 2 [1] 1 1 1 3 [1] 1 1 1 4 [1] 1 1 2 1 Segmentation fault ### whereas the code seems to work...
2009 Jul 15
0
Bug#536175: Bug#536175: Bug#536176: xen-utils-3.4: trying xen-3.4 once breaks xen-3.2 (?)
...ipts/qemu-ifdown" + + #ifdef CONFIG_STUBDOM + #define bdrv_host_device bdrv_raw --- /dev/null +++ xen-3/debian/patches/tools-ioemu-prefix.diff @@ -0,0 +1,26 @@ +--- tools/ioemu-qemu-xen/xen-hooks.mak ++++ tools/ioemu-qemu-xen/xen-hooks.mak +@@ -74,8 +74,9 @@ + + EXESUF=-xen + +-datadir := $(subst qemu,xen/qemu,$(datadir)) +-docdir := $(subst qemu,xen/qemu,$(docdir)) +-mandir := $(subst share/man,share/xen/man,$(mandir)) ++bindir := /usr/lib/xen-3.4/bin ++datadir := $(subst qemu,xen-3.4/qemu,$(datadir)) ++docdir := $(subst qemu,xen-3.4/qemu,$(docdir)) ++mandir := $(subst share/man,share/...
2017 Sep 19
0
symbolic computing example with Ryacas
...quot;);U <- Sym("U");x0 <- Sym("x0");C <- Sym("C") > > my_func <- function(x,U,x0,C) { > > return (U/(1+exp(-(x-x0)/C)))} > > FirstDeriv <- deriv(my_func(x,U,x0,C), x) > > PrettyForm(FirstDeriv) > > slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)") > > PrettyForm(slope) > > > I don't understand how I should use the Subst command. I want the slope of > the first derivative at x=x0. How do I implement that? > > I would appreciate any help that I can get. > > Thanks, >...
2005 Jul 30
3
kbuild updates to klibc
Hi Peter & others. Here are three patches that does the following: #1 - Update kbuild part of klibc so make clean works Adds gzip including a sample kbuild file #2 - Factor out definition of usr/ to two variables #3 - Move kbuild files to reflect location in the kernel As requested in earlier mail I need a bit of guidiance of what you expect from the kernel integrated parts of klibc.
2005 Jul 29
1
move kbuild files to reflect dir structure in kernel
...amfs_data.cpio.gz - diff --git a/kernel/Kbuild.include b/kernel/Kbuild.include deleted file mode 100644 --- a/kernel/Kbuild.include +++ /dev/null @@ -1,52 +0,0 @@ -# -# Generic kbuild routines -# - -# The temporary file to save gcc -MD generated dependencies must not -# contain a comma -depfile = $(subst $(comma),_,$(@D)/.$(@F).d) - - -ifneq ($(KBUILD_NOCMDDEP),1) -# Check if both arguments has same arguments. Result in empty string if equal -# User may override this check using make KBUILD_NOCMDDEP=1 -arg-check = $(strip $(filter-out $(1), $(2)) $(filter-out $(2), $(1)) ) - -endif - -# If quiet is...
2011 Sep 20
2
[LLVMdev] [PATCH] llvm-config: Add support for LIBDIR_SUFFIX.
...3 ++- > > 5 files changed, 16 insertions(+), 4 deletions(-) > > > > diff --git a/autoconf/configure.ac b/autoconf/configure.ac > > index f3e94e8..cd943cc 100644 > > --- a/autoconf/configure.ac > > +++ b/autoconf/configure.ac > > @@ -1606,9 +1606,11 @@ AC_SUBST(SHLIBPATH_VAR,$libltdl_cv_shlibpath_var) > > if test "${prefix}" = "NONE" ; then > > prefix="/usr/local" > > fi > > +libdir_suffix=$(echo ${libdir} | sed -r "s:.*[^0-9]([0-9]*):\1:g") > > eval LLVM_PREFIX="${prefix}";...
2014 Sep 11
3
[LLVMdev] patch for DragonEgg 3.3
Hi - attached is a patch to enable building DragonEgg (x86_64) for LLVM3.3 and LLVM3.4. That is, add these changes to the 3.3 release, and it becomes possible to build DragonEgg against a llvm3.4 compiler. Regards, Richard Gorton Cognitive Electronics rcgorton at cog-e.com ---------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name:
2006 May 09
0
[PATCH] build: make linux download more flexible
...-KERNEL_REPO = http://www.kernel.org +DOWNLOAD_PATH_DEFAULT := .:.. +LINUX_REPO_DEFAULT := http://www.kernel.org/pub/linux/kernel/ +ifdef LINUX_SRC_PATH +DOWNLOAD_PATH ?= $(LINUX_SRC_PATH) # Compatibility +else +DOWNLOAD_PATH ?= $(DOWNLOAD_PATH_DEFAULT) +endif +DOWNLOAD_DIR := $(firstword $(subst :, ,$(DOWNLOAD_PATH))) +LINUX_REPO ?= $(LINUX_REPO_DEFAULT) +# LINUX_REPO_KERNEL_PATH Set in buildconfigs/Rules.mk, if not in environment +# LINUX_REPO_PATCH_PATH Set in buildconfigs/Rules.mk, if not in environment # If ACM_SECURITY = y, then the access control module is compiled # into Xe...
2018 May 07
2
[clang] Running a single testcase
...inaries installed on my system? But I run the test after symlinking clang-7 ---> clang... $ ./bin/llvm-lit -v ./tools/clang/test/Sema/asm.c llvm-lit: /home/sdi/src/llvm/llvm/utils/lit/lit/llvm/config.py:334: note: using clang: /usr/bin/clang llvm-lit: /home/sdi/src/llvm/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find c-index-test in /home/sdi/src/llvm/build/./bin:/home/sdi/src/llvm/build/./bin llvm-lit: /home/sdi/src/llvm/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-check in /home/sdi/src/llvm/build/./bin:/home/sdi/src/llvm/build/./bin llvm-lit: /home/sdi/src/llvm/ll...