search for: func3

Displaying 13 results from an estimated 13 matches for "func3".

Did you mean: func
2018 Jan 11
1
LLVM EH tables much larger than GCC's
...actually a behavior change. It will cause > cleanups between the thrown exception and the noexcept function to stop > running. ... It seems that some unwinders still run cleanups when the termination landing pad is omitted? e.g. For this sample code, GCC emits an empty call site table for func3: #include <stdio.h> struct A { ~A() { fprintf(stderr, "~A\n"); } }; void func1() { throw 0; } void func2() { A a; func1(); } void func3() noexcept { func2(); } int main() { func3(); } Compiling for either x86 or x86_64 Ubuntu, using g++ with libstdc++/libsupc++, the program still...
2003 Dec 09
2
: global and local variables
Hi all I have a problem pertaining to local and global variables. Say I have a function defined as follows: a<-function(x) {y<x^2} i.e a(2) [1] 4 function b is now defined to take the value of y and do some manipulation with it. As it stands I dont know how to store the variable y such that other functions are able to reference its value. I know that I
2011 Feb 17
1
Integrate with an indicator function
...code below: func1 <- function(x, mu){ (mu^2)*dnorm(x, mean = mu, sd = 1)*dgamma(x, shape=2)} m1star <- function(x){ integrate(func1, lower = 0, upper = Inf,x)$val} T <- function(x){ 0.3*dnorm(x)/(0.3*dnorm(x)+0.7*m1star(x))} func2 <- function(x,c){(T(x) <=c)*0.3*dnorm(x)} func3 <- function(x,c){(T(x) <= c)*(0.3*dnorm(x)+0.7*m1star(x))} numer <- function(c){ integrate(func2, -Inf, Inf, c)$val} denom <- function(c){ integrate(func3, lower, Inf,c)$val} The error message is as below : > numer(0.5) Error in integrate(func1, lower = 0, upper = Inf, x)...
2011 Feb 17
1
Integration with an Indicator Function in R
...e code below: func1 <- function(x, mu){ (mu^2)*dnorm(x, mean = mu, sd = 1)*dgamma(x, shape=2)} m1star <- function(x){ integrate(func1, lower = 0, upper = Inf,x)$val} T <- function(x){ 0.3*dnorm(x)/(0.3*dnorm(x)+0.7*m1star(x))} func2 <- function(x,c){(T(x) <=c)*0.3*dnorm(x)} func3 <- function(x,c){(T(x) <= c)*(0.3*dnorm(x)+0.7*m1star(x))} numer <- function(c){ integrate(func2, -Inf, Inf, c)$val} denom <- function(c){ integrate(func3, lower, Inf,c)$val} The error message is as below : > numer(0.5) Error in integrate(func1, lower = 0, upper = Inf, x)...
2012 Sep 27
1
Is there a way to source from a specific Git repository without hardcoding the location everywhere?
...yada\") # or setwd("L:\foo\bar\sharedRemote\wet\") -- this is the only difference among repository locations. source("projectStart2.r") projectStart2.r # tracked source("func1.r") source("func2.r") source("func3.r") ... func1.r # tracked func2.r # tracked func3.r # tracked ... Is there an easier or better accepted method? Thank you for your time, cur -- Curt Seeliger, Data Ranger Raytheon Information Services - Contrac...
2018 Jan 10
0
LLVM EH tables much larger than GCC's
On Fri, Jan 5, 2018 at 9:58 PM, Ryan Prichard via llvm-dev < llvm-dev at lists.llvm.org> wrote: > 2. *Termination landing pads.* > > Clang sometimes uses a landing pad that calls __clang_call_terminate to > terminate the program. GCC instead leaves a gap in the call site table, > and the personality routine calls std::terminate. For the 4MB > libQt5Core.so sample I'm
2004 May 05
3
sample
Dear List: I have the following simple program: x<- sample(site) VarGuilda1<- var(tapply(x,site,func1)) VarGuilda2<- var(tapply(x,site,func2)) VarGuilda3<- var(tapply(x,site,func3)) VarGuilda4<- var(tapply(x,site,func4)) VarGuilda5<- var(tapply(x,site,func5)) VarGuilda6<- var(tapply(x,site,func6)) VarGuilda7<- var(tapply(x,site,func7)) VarGuilda8<- var(tapply(x,site,func8)) VarGuilda9<- var(tapply(x,site,func9)) Var<-cbind(VarGuilda1,VarGuilda2,VarGuilda...
2005 Aug 02
1
(no subject)
...want to compare them on the same I don't need mfrow or mfcol, I need something else... 1 graph on 1 device inside this graph 3 ploted function. I saw something unsing data.frame, but i think it's overkill, and something less complicated must exist, if not why? why not plot(func1,func2,func3) ?? thks. //////////////////////////////////////////////////////////// // Webmail Oreka : http://www.oreka.com ////////////////////////////////////////////////////////////
2005 Aug 02
1
plotting 3 functions on same graph
...want to compare them on the same I don't need mfrow or mfcol, I need something else... 1 graph on 1 device inside this graph 3 ploted function. I saw something unsing data.frame, but i think it's overkill, and something less complicated must exist, if not why? why not plot(func1,func2,func3) ?? thks. //////////////////////////////////////////////////////////// // Webmail Oreka : http://www.oreka.com ////////////////////////////////////////////////////////////
2018 Jan 06
2
LLVM EH tables much larger than GCC's
Hi, I'm investigating the size of Clang's generated binaries relative to GCC, when targeting Android, and I've noticed that Clang's exception tables are much larger -- the .ARM.extab section is about 2.5 times as large in two examples. I noticed a couple of differences between Clang and GCC: 1. *ULEB128 encoding.* In the call site table, GCC encodes offsets using a ULEB128
2011 Jan 20
0
Writing functions. please help
...{ func1=function(t){ weibull=function(t){ dist=1000*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull, 0, t) return(calc)} func2=function(t){ weibull=function(t){ dist=100*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,t, 100) return(calc)} func3=function(t){ weibull=function(t){ dist=t*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,0 ,t) return(calc)} func4=function(t){ weibull=function(t){ dist=t*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,t ,100) return(calc)} lastcalc=(fun...
2009 Aug 13
4
un run run...
Hi All, I am running an Rscript with a bunch of algorithms that are UNSTABLE under some parameter settings. At a certain point one of them sends error massage and my whole run STOPS! What I would like is to save the error massage in some file or variable and carry on to the next command line without stopping this run... Any help or ideas would be welcome, please, with a concrete example (not
2015 Jan 08
2
[LLVMdev] Separating loop nests based on profile information?
> On Jan 7, 2015, at 5:33 PM, Chandler Carruth <chandlerc at google.com> wrote: > > > On Wed, Jan 7, 2015 at 5:19 PM, Philip Reames <listmail at philipreames.com <mailto:listmail at philipreames.com>> wrote: > I've been playing with approaches to getting better optimization of loops which contain infrequently executed slow paths. I've gotten as far as