similar to: longint

Displaying 20 results from an estimated 30000 matches similar to: "longint"

2018 Aug 16
3
longint
Thanks for the replies and for confirming my suspicion. Interestingly, src/include/S.h uses a trick: ?? #define longint int and so does the nlme package (within src/init.c). On 08/15/2018 02:47 PM, Herv? Pag?s wrote: > No segfault but a BIG warning from the compiler. That's because > dereferencing the pointer inside your myfunc() function will > produce an int that is not
2018 Aug 15
2
longint
> On 15 Aug 2018, at 12:48, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > >> On 15/08/2018 7:08 AM, Benjamin Tyner wrote: >> Hi >> In my R package, imagine I have a C function defined: >> void myfunc(int *x) { >> // some code >> } >> but when I call it, I pass it a pointer to a longint instead of a >> pointer to an
2018 Aug 15
0
longint
No segfault but a BIG warning from the compiler. That's because dereferencing the pointer inside your myfunc() function will produce an int that is not predictable i.e. it is system-dependent. Its value will depend on sizeof(long int) (which is not guaranteed to be 8) and on the endianness of the system. Also if the pointer you pass in the call to the function is an array of long ints, then
2018 Aug 16
2
longint
On 08/16/2018 05:12 AM, Dirk Eddelbuettel wrote: > > On 15 August 2018 at 20:32, Benjamin Tyner wrote: > | Thanks for the replies and for confirming my suspicion. > | > | Interestingly, src/include/S.h uses a trick: > | > | ?? #define longint int > | > | and so does the nlme package (within src/init.c). > > As Bill Dunlap already told you, this is a) ancient and
2007 Oct 10
2
corMatrix crashes with corARMA structure (PR#9952)
Full_Name: Benjamin Tyner Version: 2.6.0 RC 2007-10-01 r43043 OS: WinXP Submission from: (NULL) (171.161.224.10) platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status RC major
2018 Aug 16
0
longint
On 15 August 2018 at 20:32, Benjamin Tyner wrote: | Thanks for the replies and for confirming my suspicion. | | Interestingly, src/include/S.h uses a trick: | | ?? #define longint int | | and so does the nlme package (within src/init.c). As Bill Dunlap already told you, this is a) ancient and b) was concerned with the int as 16 bit to 32 bit transition period. Ie a long time ago. Old C
2018 Aug 16
0
longint
On 16/08/2018 18:33, Herv? Pag?s wrote: > On 08/16/2018 05:12 AM, Dirk Eddelbuettel wrote: >> >> On 15 August 2018 at 20:32, Benjamin Tyner wrote: >> | Thanks for the replies and for confirming my suspicion. >> | >> | Interestingly, src/include/S.h uses a trick: >> | >> |? ?? #define longint int >> | >> | and so does the nlme package (within
2010 Mar 31
2
Simplifying particular piece of code
Hello, everyone I have a piece of code that looks like this: mrets <- merge(mrets, BMM.SR=apply(mrets, 1, MyFunc, ret="BMM.AV120", stdev="BMM.SD120")) mrets <- merge(mrets, GM1.SR=apply(mrets, 1, MyFunc, ret="GM1.AV120", stdev="GM1.SD120")) mrets <- merge(mrets, IYC.SR=apply(mrets, 1, MyFunc, ret="IYC.AV120",
2010 Sep 15
3
warning or error upon type/storage mode coercion?
Hi, I'm aware that the language definition states "R objects are often coerced to different types during computations". Two questions: 1. Is it possible to configure the R environment so that, for example, coercion from (say) numeric to integer will throw a warning or an error? I realize that in the base R code alone, there are thousands of calls to as.integer() which would
2018 Feb 06
4
rJava garbage collect
Hi Does rJava offer a way to instruct the JVM to perform a garbage collection? Regards Ben
2006 Oct 30
3
correlation structure in lme without random effect
I was hoping to fit along the lines of g<-gl(20,5) y<-runif(100) fit<-lme(fixed=y~g,correlation=corAR1(0,~1|g)) But I get the error "Incompatible formulas for groups in "random" and "correlation"" Any help would be greatly appreciated. Ben
2018 Jan 10
5
OpenBLAS in everyday R?
I didn't do the compile; is there a way to check whether that was used? If not, I'll inquire with our sysadmin and report back. In any case, my suggestion was motivated by the fact that some parts of R use OpenMP while others do not, in the hope that the former could have their OpenBLAS omelet without breaking the OpenMP eggs, so to speak. On 01/09/2018 06:41 PM, Keith O'Hara
2019 Dec 06
1
Error in close.connection(p) : ignoring SIGPIPE signal
Andreas, How right you are! Still, I find it curious that in the context of the while(TRUE) loop, I am allowed to do this 653 times, with failure on the 654th attempt. Perhaps there is something asynchronous going on? If I eliminate the looping, it does indeed fail (as expected) on the first attempt to close the pipe. Regards Ben On 12/6/19 2:04 AM, Andreas Kersting wrote: > Hi
2020 Jan 19
2
rpois(9, 1e10)
So imagine rpois is changed, such that the storage mode of its return value is sometimes integer and sometimes numeric. Then imagine the case where lambda is itself a realization of a random variable. Do we really want the storage mode to inherit that randomness? On 1/19/20 10:47 AM, Avraham Adler wrote: > Maybe there should be code for 64 bit R to use long long or the like? > > On
2019 Dec 06
2
Error in close.connection(p) : ignoring SIGPIPE signal
Not sure if this is a bug, so posting here first. If I run: ?? cnt <- 0L ?? while (TRUE) { ? ? ?? cnt <- cnt + 1L ? ? ?? p <- pipe("echo /dev/stdin > /dev/null", open = "w") ? ? ?? writeLines("foobar", p) ? ? ?? tryCatch(close(p), error = function(e) { print(cnt); stop(e)}) ?? } then once cnt gets to around 650, it fails with: ?? [1] 654 ??
2005 Apr 05
2
future update to loess
Background: I'm a student of Prof. Cleveland at Purdue University. Eventually, we'd like to release a new version of the loess routine in R. For starters, this implementation would have support for local polynomial degree 3, better control over the number of cells in the KD tree, and perhaps a better solution in higher predictor dimension. I see that Prof. Ripley was responsible for
2020 Jan 19
2
rpois(9, 1e10)
????? This issue arose for me in simulations to estimate confidence, prediction, and tolerance intervals from glm(., family=poisson) fits embedded in a BMA::bic.glm fit using a simulate.bic.glm function I added to the development version of Ecfun, available at "https://github.com/sbgraves237/Ecfun".? This is part of a vignette I'm developing, available at
2024 Mar 01
3
installation: while running make, unable to run pdflatex on 'NEWS.tex'
A kind member of R-core suggested this is due to a misconfiguration on my system, and to post it to the mailing list for troubleshooting. When trying to build R version 4.3.3, in at least two places during the process it gives LaTeX errors of the form: (example 1) you should 'make docs' now ... make[1]: Entering directory '/home/btyner/R-4.3.3/doc' creating
2006 Jul 26
2
mean(NA) returns -(1+.Machine$integer.max) (PR#9097)
Full_Name: Benjamin Tyner Version: 2.3.0 OS: linux-gnu (debian) Submission from: (NULL) (71.98.75.54) > mean(NA) returns -2147483648 on my system, which is -(1+.Machine$integer.max) > sessionInfo() Version 2.3.0 (2006-04-24) i686-pc-linux-gnu attached base packages: [1] "methods" "stats" "graphics" "grDevices" "utils"
2007 Jan 29
2
lattice: two grouping variables, one controls 'col', the other 'pch'
Say I have library(lattice) x<-runif(256) y<-runif(256) f<-gl(16,16) g1<-rep(1:4,each=64) g2<-rep(1:4,times=64) plot<-xyplot(y~x|f, groups=g1, pch=as.character(1:4), panel=function(x,y,subscripts,groups,...){ panel.superpose(x,y,subscripts,groups,...) }) print(plot) Currently, both