Displaying 20 results from an estimated 184 matches for "rmath".
Did you mean:
math
2005 Jul 25
1
Rmath library problems
Hello,
Has anybody successfully called the Rmath library from C using the MS
Visual Studio compiler (I am using Visual Studio 6.0)?
I have compiled the Rmath library using gcc, and the 'test.c' program
(which makes a call to qnorm) works fine when compiled with gcc. However,
I get a fatal memory error when I run it after compiling it...
2008 Oct 11
1
defines in Rmath.h and R_NO_REMAP
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm programming with R 2.7.2 and had some trouble including
Rmath.h for its random variates generation routines: Although
I define R_NO_REMAP (which works fine for Rinternals.h stuff),
Rmath.h defines "beta" as "Rf_beta" etc., so that my "beta" strings
get redefined as well! Is this a feature?
I found an old Rmath.h version from 200...
2010 Jun 10
1
Rmath.dll importing in VB6 problem
...nk i need to explain it to you with some
background.
I need to use the Project R pnorm function in Visual Basic 6.0.
I have already installed R and this is how i perform and get back the
result:
> pnorm(2, 15)
[1] 6.117164e-39
which is what i need.
I have already installed R, i generated the Rmath.DLL file out so i can
import it into my VB6 and use it.
Anyway, i reviewed pnorm.c file which was in the directory tree of project R
i downloaded, and it has two functions in it:
pnorm5 and pnorm_both
i have successfully imported the Rmath.dll file into my VB6 program, the
matter is that now i am...
2011 Jan 20
1
GPU packages and 'Debian R Policy'
...the Ubuntu host for the Tesla, I was trying to install the
cudaBayesreg package.
This gets its compile-time include path by doing an `R RHOME`
and adding "/include" to it.
It thus ends up trying to compile a source code file using
-I/usr/lib64/R/include
but that fails to pull in the Rmath.h include file that the
source file requires but doesn't find, not least because
there is no `R RHOME`/include.
I thus went looking for said Rmath.h and found one to be at:
/usr/share/R/include/Rmath.h
and so tried to get the cudaBayesreg installer to take notice
of that location.
I tried...
2011 Aug 08
1
Making rmath.dll (or equivalent)
I currently have R 2.12.1 installed, both 32 and 64 bit. I also have a file
that was passed to me named rmath.dll. I do not know what version of R it
was created from, but I do know it is 32-bit only. I am developing an
application in C# that uses this library as a reference but I have to
downgrade it to 32-bit in order to use the DLL file.
I wish to make a rmath.dll from the version of R I have on my co...
2023 Feb 16
0
User-defined RNG with the standalone Rmath library
I have two questions about using a user-defined random number generator (RNG) with the standalone Rmath library. The default RNG with the standalone Rmath library is the Marsaglia-multicarry generator, which has poor properties. The "R Installation and Administration" manual, in the section "The standalone Rmath library", states that:
```
A little care is needed to use the random...
2004 Jun 27
1
cross-compiling + expm1
...send this question, but I have a question about cross-compiling R. I am
working with R-1.9.1.tgz.
It may just be with my version of mingw32, but it seems that expm1 is
not defined, so I tried to ensure that HAVE_EXPM1 was #undef'ed before
cross-compiling. The problem is that, in <include/Rmath.h> if it is
#undef'ed it is then #define'd as 1, meaning that the line where expm1
is declared automatically not included. I had similar problems with
logpq, but after changing Rmath.h cross-compiling was straightforward.
My question is: is this a "bug" in Rmath.h with resp...
2007 Aug 31
0
Studio 11 compiling of Rmath standalone versus compiling R
...t info:
1) I'm using SunOS 5.9 on a 32 bit machine without parallel processing. The chip is Sparc.
2) I've installed the Sun Studio 11 compilers.
3) I've successfully built and tested R 2.5.1 with Studio 11--all the make checks were successful as were my own tests.
4) The README to the Rmath standalone library warns that mlutils.c _cannot_ be compiled with Sun's cc compiler because it can't do compile-time floating point arithmetic. This is confirmed by the output I get when I run the make (after the full R package was built and installed):
(cd ../../include; make Rmath.h)
`Rm...
2005 Nov 28
1
No Rmath.h when making just standalone library
When making only the standalone math library, include/Rmath.h
is not there, so compilation fails. A solution is to go to
src/include/ and just say `make Rmath.h' there first.
This is with R-2.2.0 on GNU/Linux on i686. The failing steps
are:
tar xzf ../R-2.2.0.tar.gz
./configure
cd src/nmath/standalone
make
Would be nice if this worked, or if the issu...
2007 Mar 21
3
question on suppressing error messages with Rmath library
Dear list,
I have been using the Rmath library for quite a while: in the current instance, I am calling dnt (non-central t density function) repeatedly for several million. When the argument is small, I get the warning message:
full precision was not achieved in 'pnt'
which is nothing unexpected. (The density calls pnt, if you...
2008 Jan 29
1
The standalone Rmath library and VC++ 2003
Linking my VC++ application with the standalone Rmath library yields the
following;
------ Build started: Project: Complex plugin, Configuration: Debug
Win32 ------
Linking...
Creating library .\../Debug/complex_plugin.lib and object
.\../Debug/complex_plugin.exp
libRmath.a(mlutils.o) : warning LNK4217: locally defined symbol __iob
import...
2020 Jun 02
0
R standalone Rmath library - missing log1pexp(), rnbeta()
>>>>> William Birkett
>>>>> on Mon, 1 Jun 2020 15:16:07 -0400 writes:
> I built the the standalone Rmath library,
> https://cran.r-project.org/doc/manuals/r-release/R-admin.html#The-standalone-Rmath-library
> <https://cran.r-project.org/doc/manuals/r-release/R-admin.html#The-standalone-Rmath-library>
> The build process went smoothly.
> But, there are two functions,...
2006 Dec 18
1
Rmath: R libraries from C on Mac OS X
Dear R-experts,
I have been having trouble using R's standalone random number generators
from C on my Mac OS X 10.4.8 system.
I try to compile my C program in the following way:
gcc -Wall -o helloMac helloMac.c -lm -lRmath
I get the following error:
/usr/bin/ld: can't locate file for: -lRmath
I am unable to locate Rmath on my machine. The problem appears to be
that no libRmath.a was built on my Mac OS X installation.
Any pointers (perhaps to a step by step guide for a _beginner_ on how to
install this and th...
2003 Apr 01
1
using Rmath standalone
Hi,
I am a c/c++ programmer attempting to utilise the Rmath library (looks VERY useful). I have downloaded the Rsource and compiled the library as recommened (compiled on windows 98 using the cygwin environment). But whenever i try to use functions from the library i get similar error messages -
eg. using the function dnorm(double, double...... etc ) i...
2004 Apr 14
1
question about /nmath/standalone
Hello,
I can't link a c code with Mathlib according to introduction of R
manual "Writing R Extensions", page 60.
It is written :
"It is possible to build Mathlib, the R set of mathematical functions
documented in
'Rmath.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/nm...
2004 Mar 19
1
R_qsort_int_I() error
Hi,
I want to use R_qsort_int_I() in my C function, but getting the
following error. It looks like there is a conflict between Rmath.h,
which I use to generate random numbers, and R_ext/Boolean.h I would
appreciate any help to fix this problem.
gcc -ansi -g -o Gibbs gibbs.c subroutines.o rand.o vector.o -lm -lRmath
-llapack -lblas -lfrtbegin -lg2c -lm -shared-libgcc
In file included from /usr/include/R_ext/Utils.h:27,...
2004 Apr 16
0
Rmath
Dear all,
I have been trying to build standalone Rmath library for irix 6.5, but,
could not get it due to some reasons, if anyone would like to share already
built ones, please let me know, I appreciate all of your help.
Sincerely;
Scott
2002 Apr 30
1
makefile for standalone lib
It appears the Makefile.win in
src/nmath/standalone might need some modification since
cd src/nmath/gnuwin32
make -f Makefile.win
make -f Makefile.win test
fails. However if I remove libRmath.a from line 15
OR
modify lines 67/68 replacing Rmath.a with libRmath.a then
make -f Makefile.win test
goes as expected.
_________________________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list --...
2002 Jan 14
1
trouble using R Mathlib as standalone
...hanks in advance. Please cc me; I'm not on the list.
Sincerely, Faheem Mitha.
************************************************************************
#include "lattice.hh"
#include "mh.hh"
#define MATHLIB_STANDALONE
#include <Rmath.h>
/* random sample from proposal distribution q-gibbs */
double q_gibbs_rand(Cube& cube, double& beta, vector<double>::size_type&
t)
{
vector<double> ctr = ((0.5)*(cube.down + cube.up)).coord;
vector<double>::size_type hsize = ctr.size();
double a, u, y;...
2005 Oct 31
1
R-functions in C-Code
Dear R users,
I would like to use several R functions from a C-code and I have read the "Introduction to the .C Interface to R". Unfortunately, my shared library with the C-code works only in cases where I use R-routines that are defined Rmath.h, eg.
*************************************
less test.c:
#include <R.h>
#include <Rinternals.h>
#include <Rmath.h>
void test(int *nrows, SEXP init,SEXP fac1, SEXP typeordi, SEXP bgratio)
{
double sum = dnorm(1.0/1, 0, 1, 0);
}
Compiling and building shared library:
g...