Displaying 20 results from an estimated 326 matches for "nmath".
Did you mean:
math
2005 Dec 14
1
R-beta on AIX5.2
I build R-beta on AIX5.2 is failed.
make[3]: Entering directory
`/home/nakama/Rbeta/R-beta/src/nmath'
xlc_r -I. -I../../src/include -I../../src/include -I/usr/local/include
-I/opt/freeware/include -DHAVE_CONFIG_H -q64 -I/usr/local/include
-I/opt/freeware/include -O2 -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -c
mlutils.c -o mlutils.o
"nmath.h", line 50.9: 1506-213 (S) Macro name calloc c...
2005 Feb 22
1
include C functions from nmath in my own C functions
Hi:
I am writing a C program which need a gamma random
number generator. I download the source file of R and
compile, make it myself. There is a "rgamma.c"
function in the installing directory of
R("/home/zhliu/Backup/R-2.0.1/src/nmath/rgamma.c"). My
question is how to call this function in my own
program which is in another directory. I can not copy
this "rgamma.c" to my working directory and use
#inclucde"rgamma.c" because in the file "rgamma.c", it
includes other header files. Or I can use ma...
1999 Apr 10
2
IRIX compile (PR#163)
Full_Name: Tim Middelkoop
Version: 0.64.0
OS: IRIX 6.3 on O2
Submission from: (NULL) (128.119.88.192)
Various IRIX complile issues
src/nmath/pnt.c
IRIX cc does not like double negatives
Makeconf,config.site,etc/Makeconf
f77 pic hack, should change Makeconf.in or other...
change -PIC with -KPIC
enjoy, tim...
===
diff -ru orig/R-0.64.0/src/nmath/pnt.c R-0.64.0/src/nmath/pnt.c
--- orig/R-0.64.0/src/nmath/pnt.c Wed Apr 7 02:45:48...
2006 Mar 01
3
library file for R's nmath routines
Hi,
I am wondering where the library file for R's nmath routines are?
Doing a search on libR gave me the following:
/usr/lib/libRKC16.so.1.2.0
/usr/lib/libRKC.so.1.2.0
/usr/lib/R/lib/libRlapack.so
/usr/lib/R/lib/libR.so
/usr/lib/libRKC.so.1
/usr/lib/libRKC16.so.1
None of these have the functions in nmath.
Any help? Many thanks and best wishes!
GT
2002 May 23
1
nmath standalone
Dear all,
I'm trying to use the as a standalone package the nmath sources.
In R-1.4.1/src/nmath/standalone, in linux operating system I made 'make
shared' to obtain libRmath.so. then I copied the dir standalone, where
there is libRmath.so in /usr/local.
I tried to compile test.c with cc test.c but I obtain this error message
/tmp/ccsTxu7U.o: In functio...
2002 May 24
1
nmath standalone again
Hi !
I have again problem with nmath standalone sources package.
Following the suggestion of Reid, I did control that
/usr/local, in which I copied the dir standalone, is listed in
/etc/ld.so.conf.
However, because of my big ignorance, I don't understand how I have to do
the linkage to Rmath during the compilation of a source....
2004 Apr 14
1
question about /nmath/standalone
...th.h?, as a standalone library 'libRmath? under Unix and Windows. (This
includes
the functions documented in Section 5.7 [Numerical analysis subroutines], page
61 as fromthat header file.)
The library is not built automatically when R is installed, but can be built
in the
directory 'src/nmath/standalone? in the R sources: see the file 'README?
there. To use thecode in your own C program include
#define MATHLIB_STANDALONE
#include <Rmath.h>
and link against '-lRmath?. There is an example file 'test.c?."
Have I to do: gcc -lRmath test.c ? In this case I receive...
2020 Aug 10
2
qnbinom with small size is slow
Thanks Ben for verifying the issue. It is always reassuring to hear
when others can reproduce the problem.
I wrote a small patch that fixes the issue
(https://github.com/r-devel/r-svn/pull/11):
diff --git a/src/nmath/qnbinom.c b/src/nmath/qnbinom.c
index b313ce56b2..d2e8d98759 100644
--- a/src/nmath/qnbinom.c
+++ b/src/nmath/qnbinom.c
@@ -104,6 +104,7 @@ double qnbinom(double p, double size, double prob,
int lower_tail, int log_p)
/* y := approx.value (Cornish-Fisher expansion) : */
z = qnorm(p, 0.,...
2005 Aug 11
1
include C functions from nmath in my own C functions
Hi:
I followed the README in src/nmath/standalone/
to make the use the command "make shared" to make the
libRmath.so file. I also add the directories containg
libRmath.so to LD_LIBRARY_PATH by using command
"export
D_LIBRARY_PATH=$LD_LIBRARY_PATH:$/home/zhliu/Backup/R-2.0.1/src/nmath/standalon
e
"
However,...
2007 Dec 14
1
Improvement of SignRank functions
...ory efficiency.
The idea is basically the same. I use the same recursion
as original author used with one slight modification.
I am generating Wilcoxon SignRank density from the
beginning (for n=2,3,...) with the help of recursion formula.
What is changed?
There is no need for SINGRANK_MAX in src/nmath/nmath.h anymore.
Only functions:
static void w_free()
void signrank_free()
static void w_init_maybe(int n)
static double csignrank(int k, int n)
in src/nmath/signrank.c have been altered.
There was no change to dsignrank, psignrank, ...
I've tried to make as little changes as possible.
So, to...
2005 Aug 11
1
include C functions from nmath in my own C functions
Hi:
I followed the README in src/nmath/standalone/
to make the use the command "make shared" to make the
libRmath.so file. I also add the directories containg
libRmath.so to LD_LIBRARY_PATH by using command
"export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$/home/zhliu/Backup/R-2.0.1/src/nmath/standalon
e
"
However, whe...
2005 Jun 25
1
comment in src/nmath/dgamma.c
Hi,
In src/nmath/dgamma.c the comment at the top says
* DESCRIPTION
*
* Computes the density of the gamma distribution,
*
* 1/s (x/s)^{a-1} exp(-x/s)
* p(x;a,s) = -----------------------
* (a-1)!
*
* where `s' is the scale (= 1/lambda in...
2000 Oct 30
1
unsuccesfully making libRmath.a
Dear All,
I am having problems making and using the standalone library, after succesfully
installing R from the tar.gz file (I am using Linux, with R-patched, but I have
similar problems with R-devel).
First, when I do:
root at ligarto:/usr/lib/R-patched/src/nmath/standalone > make
....
ar: mlutils.o: No such file or directory
make[1]: *** [libRmath.a] Error 1
make[1]: Leaving directory `/usr/lib/R-patched/src/nmath/standalone' make: ***
[archive] Error 2
I tried directly giving the names of the object files to ar, and it seems to
work... but not...
2010 Feb 10
1
Copyright on src/nmath/qnorm.c
At the top of src/nmath/qnorm.c it is stated:
* Copyright (C) 1998 Ross Ihaka
* Copyright (C) 2000--2005 The R Development Core Team
* based on AS 111 (C) 1977 Royal Statistical Society
* and on AS 241 (C) 1988 Royal Statistical Society
The routine is in fact an f2c'd version of AS241 from StatLib:
h...
2002 May 31
1
Two questions about nmath
Hi !
1) First question.
Excuse me for trouble with the same question. I still have problems
with the compilation of test.c in src/nmath/standalone.
I did follow the instructions you gave me but I still receive this message
[root at my standalone]# cc -o test test.c -L/usr/local -lRmath
/usr/local/libRmath.so: undefined reference to `log'
/usr/local/libRmath.so: undefined reference to `sqrt'
/usr/local/libRmath.so: undefi...
2007 May 23
2
Possible ld.exe problem when building
...39;.
installing C headers
make --no-print-directory -C ../extra/intl OPTFLAGS='-O3 -Wall -pedantic -std=gnu99' -f Makefile.win
make --no-print-directory -C ../appl OPTFLAGS='-O3 -Wall -pedantic -std=gnu99' FOPTFLAGS='-O3 -Wall' -f Makefile.win
make --no-print-directory -C ../nmath OPTFLAGS='-O3 -Wall -pedantic -std=gnu99' -f Makefile.win
make --no-print-directory -C ../main OPTFLAGS='-O3 -Wall -pedantic -std=gnu99' FFLAGS='-O3 -Wall' -f Makefile.win
make --no-print-directory -C ./graphapp OPTFLAGS='-O3 -Wall -pedantic -std=gnu99'
make --no-pri...
2020 Aug 21
1
qnbinom with small size is slow
...._t.*/TRUE, /*log_p*/FALSE)) < p` is
FALSE. I think the solution is to move the update of y before the if.
However, I need to make this slightly awkward check if incr == 1, so that
the return in line 123 and the do-while block at the end of qnbinom() do
not need to be modified.
diff --git a/src/nmath/qnbinom.c b/src/nmath/qnbinom.c
index b313ce56b2..16845d9373 100644
--- a/src/nmath/qnbinom.c
+++ b/src/nmath/qnbinom.c
@@ -49,10 +49,18 @@ do_search(double y, double *z, double p, double n,
double pr, double incr)
{
if(*z >= p) { /* search to the left */
for(;;) {
+ y = fmax2(0,...
2005 Oct 11
1
Compile problem R 2.2.0 + Solaris 10 x86
...ntvector.o printutils.o qsort.o
random.o regex.o registration.o relop.o saveload.o
scan.o seq.o serialize.o size.o sort.o source.o
split.o sprintf.o startup.o subassign.o subscript.o
subset.o summary.o sysutils.o unique.o util.o
version.o vfonts.o xxxpr.o ../unix/libunix.a
../appl/libappl.a ../nmath/libnmath.a
-xlic_lib=sunperf -lsunmath -Rreg
-R/opt/SUNWspro/lib/sse2:/opt/SUNWspro/lib
-L/opt/SUNWspro/lib/sse2 -L/opt/SUNWspro/prod/lib/sse2
-L/opt/SUNWspro/prod/lib -L/usr/ccs/lib -lfui -lfai
-lfsu -lsunmath -lmtsk -lm ../extra/zlib/libz.a
../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a
../ext...
2004 Jul 06
3
Code density functions
Hello
I would like to see the algorithm that R uses to generate density functions
for several distributions (i.e. Normal,Weibull, etc). I tried:
>dnorm
function (x, mean = 0, sd = 1, log = FALSE)
.Internal(dnorm(x, mean, sd, log))
<environment: namespace:stats>
How can I see the code used for densities?
Thanks!
2005 Apr 02
2
Solaris10/amd64 + SunSutio Compile (PR#7767)
.../include -I../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -g -c rbinom.c -o
rbinom.o
"rbinom.c", line 60: operand must have real floating type: op "isfinite"
cc: acomp failed for rbinom.c
Following patch may solve this problem.
*** R-2.0.1.orig/src/nmath/rbinom.c Mon Nov 15 21:33:01 2004
--- R-2.0.1/src/nmath/rbinom.c Sun Apr 3 00:19:52 2005
***************
*** 57,63 ****
n = floor(nin + 0.5);
if (n != nin) ML_ERR_return_NAN;
! if (!R_FINITE(n) || !R_FINITE(pp) ||
/* n=0, p=0, p=1 are not errors <TSL>*/...